I'm reading a blob from an ASA table and it reads back fine. When
converted to a string, it gets truncated to 32768 bytes on some Vista
machines.
Code for the read follows.
Any help would be apreciated.
... Rob
SELECTBLOB notes INTO :blob_notes FROM customer_notes WHERE
"customer" = :is_customer;
ls_notes = string(blob_notes )
I doubt it's the string conversion. Check the len() of the blob first.
Are you certain the blob made it into the table in one piece? Can you
call the equivalent of len() on the column?
The first culprit I'd look at is how the blob was read from a file and
inserted into the table. 32K is the maximum one call to fileread will
return so I think that would be the most likely cause.
If you are connecting to ASA using ADO.Net or OLE-DB, you need to set the
"PBMaxBlobSize" parameter - otherwise it will default to 32K.
ie: SQLCA.DBParm="PBMaxBlobSize=200000"
HTH
--
Regards ... Chris
ISUG - NA RUG Director
http://chrispollach.pbdjmagazine.com
"Rob" <junk...@concepts.to> wrote in message
news:l20ui4lksodu25cqg...@4ax.com...
... Rob
... Rob
On 28 Nov 2008 06:17:16 -0800, "Chris Pollach"
... Rob
Try writing out the blob to a file and taking a close look at the
contents with a hex editor?
Maybe there's an extra NULL character being inserted...
Other than that, no. No ideas what the cause is.