I do this: DIM hResultado AS Result DIM sImagen AS String
IF NOT Exist("/tmp/mas") THEN MKDIR "/tmp/mas" hResultado = $hConn.Exec("SELECT * FROM `Imagenes`") sImagen = hResultado["Imagen"].Data <----------------------- Fails here "Not an object" File.Save("/tmp/mas/1.jpg", sImagen) and DIM hResultado AS Result DIM sImagen AS String IF NOT Exist("/tmp/mas") THEN MKDIR "/tmp/mas" hResultado = $hConn.Exec("SELECT * FROM `Imagenes`") sImagen = hResultado["Imagen"] File.Save("/tmp/mas/1.jpg", sImagen) Saves an empty file. Regards -- David ----- Original Message ---- From: Benoît Minisini <gam...@users.sourceforge.net> To: mailing list for gambas users <gambas-user@lists.sourceforge.net> Sent: Friday, June 26, 2009 8:21:41 AM Subject: Re: [Gambas-user] Blob management > It doesn't work, the file is saved emty. > > Benoit, any idea? > > Regards > > > -- > David > > What happens if you put the blob data into a string variable before using File.Save() ? -- Benoît ------------------------------------------------------------------------------ _______________________________________________ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user ------------------------------------------------------------------------------ _______________________________________________ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user