[Gambas-user] Blob management
Benoît Minisini
gambas at ...1...
Fri Jun 26 17:15:43 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"
Well, that means that hResultado["Imagen"] returns NULL.
Are you sure that your field is interpreted as a "Blob" by Gambas? I remind
you that MySQL has no blob field type, only string field types.
So Gambas has to make a choice, and only string field types whose maximum
length is greater then 2^24 is a blob.
--
Benoît
More information about the User
mailing list