Would someone be kind enough to paste a little bit of code to show me
how to get the file into a string so that I can assign it to the
binary field in the database?
The documentation on Binary Streams and Memory blocks is a little
confusing.
On 26/04/2006, at 9:26 PM, Hans-Georg wrote:
Am 26.04.2006 um 14:45 schrieb Jeff Edwards:
If I need to store a file from the disk into a database blob, how
do I do it?
Before Marco or Will will come by a first hint : A folderitem is a
reference to the file but doesn't contain the content of this file.
The blobcolumn of a databaserecord expects a string (and not a
folderitem), in your case a string with the content of your file.
So you have to read all the content probably in a memoryblock and
then store the stringvalue in the blobcolumn. And I guess there is
lot to think about when storing a file (restoring creation/mod.
date, type ,creatot etc)
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>
Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>