Subject | blob field |
---|---|
Author | p_b_turner |
Post date | 2007-06-08T17:50:07Z |
Have an application written in C++ that currently writes 19k worth of
formatted data to a file. Need to have a similar function that can
write (and read) the data to (and from) a blob field in our database.
Current mechanism is several fprintf calls to output the data to a
fopen'ed file.
is it easier to write the data to a temporary file, then back to the
blob field? I have come across mention of a blob stream writing
interface, I think by Ann Harrison, but can't find an example. this
would potentially be the best of both worlds, as i'm not looking
forward to migrating all the fprintf's to binary data writes.
any hints/pointers/examples to help me move along this winding road?
TIA
Pete Turner
Sun Nuclear Corp.
formatted data to a file. Need to have a similar function that can
write (and read) the data to (and from) a blob field in our database.
Current mechanism is several fprintf calls to output the data to a
fopen'ed file.
is it easier to write the data to a temporary file, then back to the
blob field? I have come across mention of a blob stream writing
interface, I think by Ann Harrison, but can't find an example. this
would potentially be the best of both worlds, as i'm not looking
forward to migrating all the fprintf's to binary data writes.
any hints/pointers/examples to help me move along this winding road?
TIA
Pete Turner
Sun Nuclear Corp.