[Gambas-user] Blob management
    David Villalobos Cambronero 
    david_villalobos_c at ...43...
       
    Fri Jun 26 16:42:22 CEST 2009
    
    
  
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 <gambas at ...1...>
To: mailing list for gambas users <gambas-user at 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 at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user
    
    
More information about the User
mailing list