Re: [Gambas-user] Blob management

2009-06-26 Thread David Villalobos Cambronero
It doesn't work, the file is saved emty. Benoit, any idea? Regards -- David - Original Message From: Werner wd...@netfront.net To: mailing list for gambas users gambas-user@lists.sourceforge.net Sent: Thursday, June 25, 2009 9:39:52 PM Subject: Re: [Gambas-user] Blob management

Re: [Gambas-user] Blob management

2009-06-26 Thread David Villalobos Cambronero
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

Re: [Gambas-user] Blob management

2009-06-26 Thread Ron
David Villalobos Cambronero wrote: 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

Re: [Gambas-user] Blob management

2009-06-26 Thread Benoît Minisini
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]

Re: [Gambas-user] Blob management

2009-06-26 Thread David Villalobos Cambronero
gambas-user@lists.sourceforge.net Sent: Friday, June 26, 2009 9:15:43 AM Subject: Re: [Gambas-user] Blob management 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

Re: [Gambas-user] Blob management

2009-06-26 Thread Benoît Minisini
Hi, first of all thanks to Benoit, Ron and Wener for help me. Just to be clear if someone reads this in the future, these statementst are correct: DIM hResultado AS Result IF NOT Exist(/tmp/mas) THEN MKDIR /tmp/mas hResultado = $hConn.Exec(SELECT * FROM `Imagenes`)

Re: [Gambas-user] Blob management

2009-06-26 Thread David Villalobos Cambronero
, 2009 10:04:27 AM Subject: Re: [Gambas-user] Blob management Hi, first of all thanks to Benoit, Ron and Wener for help me. Just to be clear if someone reads this in the future, these statementst are correct: DIM hResultado AS Result IF NOT Exist(/tmp/mas) THEN MKDIR /tmp/mas

[Gambas-user] Blob management

2009-06-25 Thread David Villalobos Cambronero
Hi, is there a problem with this instuction? hResultado = $hConn.Exec(SELECT Pic FROM Pics) File.Save(/tmp/1.jpg, hResultado[Pic].Data) I can't get them work! Regards -- David --

Re: [Gambas-user] Blob management

2009-06-25 Thread Benoît Minisini
Hi, is there a problem with this instuction? hResultado = $hConn.Exec(SELECT Pic FROM Pics) File.Save(/tmp/1.jpg, hResultado[Pic].Data) I can't get them work! Regards -- David Can you give more details? (versions, database driver)... Does the PictureDatabase example work? --

Re: [Gambas-user] Blob management

2009-06-25 Thread David Villalobos Cambronero
? Regards -- David - Original Message From: Benoît Minisini gam...@users.sourceforge.net To: mailing list for gambas users gambas-user@lists.sourceforge.net Sent: Thursday, June 25, 2009 3:29:20 PM Subject: Re: [Gambas-user] Blob management Hi, is there a problem with this instuction