PC SOFT

GRUPOS DE DISCUSSÃO PROFISSIONAL
WINDEVWEBDEV e WINDEV Mobile

Inicio → WEBDEV 2024 → Updating images in SQL
Updating images in SQL
Iniciado por Peter, nov., 04 2007 5:32 PM - Sem resposta
Publicado em novembro, 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.