PC SOFT

PROFESSIONAL NEWSGROUPS
WINDEVWEBDEV and WINDEV Mobile

Home → WEBDEV 2024 → Updating images in SQL
Updating images in SQL
Started by pedropmx, Nov., 04 2007 5:32 PM - No answer
Posted on November, 04 2007 - 5:32 PM
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.