Re: [gnome-db] BLOB - How to download/upload a file

On Fri, 2004-03-19 at 13:05 -0600, DANIEL ESPINOSA wrote:

> Ok I want to have a database (specificaly postgresql),
> but any, to save files and retribe those.
> I can create a blob with:
> gda_connnection_create_blob and have a GdaBlob object,
> Next I need a file:
> wath to do: open a file read byte by byte and write
> each one to the GdaBlob?
yes, although it would be better if you write data in bigger chunks than
1 byte :-)

> And if I want to save to a disk I need open (create) a
> file and write byte by byte to the file?
the same, use gda_blob_read to read data from the blob (in chunks) and
then write that to a file.


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]