PC SOFT

FOROS PROFESIONALES
WINDEVWEBDEV y WINDEV Mobile

Inicio → WINDEV 2024 → [WD 7.5] Inserting an image in a MySQL blob field
[WD 7.5] Inserting an image in a MySQL blob field
Iniciado por david, 07,jul. 2004 21:14 - No hay respuesta
Publicado el 07,julio 2004 - 21:14
Hello!!
I'm trying to send an image to a blob field in MySQL, but for some reason
i can't. here's some code:

reg = 2 // register number
gIMG= c:\"images\someimage.jpg" // image path

q = "UPDATE func SET foto = {WDBinaryMemo('"+gIMG+"')} WHERE fid = "+reg
// the query
qRes = SQLExec(q, "QR1")

Instead of dumping the file to the database it only dumps its path, why?
Am i doing something wrong? Is missing something?

I really appreciate some help
thanks...