PC SOFT

FORUMS PROFESSIONNELS
WINDEVWEBDEV et WINDEV Mobile

Accueil → WEBDEV 27 → Updating images in SQL
Updating images in SQL
Débuté par Peter, 04 nov. 2007 17:32 - Aucune réponse
Posté le 04 novembre 2007 - 17:32
Hi

I have a webdev site in which I have to store an image in a SQL DB. Everything's working fine with HAdd() but I'm having some trouble with HModify every time that I need to change the image. No errors returned. It just doesn't update the image. Could you give me a hint ?

Here's some of my code:

sValue is string = UploadCopyFile("UploadControl1",fExeDir(),"")
IF Length(sValue) > 0 THEN
HLinkMemo(TABLENAME,ItemName,fExeDir() + "\" + sValue,hMemoImg)
END
PageToFile()
IF HModify(TABLENAME)=False THEN
Error(HErrorInfo())
RETURN
END

Regards.