| Author |
Message |
Michael
Joined: 25 Nov 2003 Posts: 3
|
Posted: Tue Nov 25, 2003 6:40 pm Post subject: BlobSize parameter |
|
|
Is it somehow possible to use -1 as BlobSize parameter for reading an unlimited blob length, or will it be possible in a future driver release?
Or is it a Sybase restriction that the driver can't know the size before getting the data?
TIA
-Michael |
|
| Back to top |
|
 |
VISOCO VISOCO Software Manager
Joined: 15 Jul 2002 Posts: 48
|
Posted: Thu Nov 27, 2003 6:03 pm Post subject: BlobSize parameter |
|
|
Hi!
-1 means default value (32k). Unlimited blob length cannot be defined.
Sybase always need this limit.
VISOCO Software Support
support@visoco.com |
|
| Back to top |
|
 |
Michael
Joined: 25 Nov 2003 Posts: 3
|
Posted: Tue Dec 30, 2003 4:14 pm Post subject: BlobSize parameter |
|
|
| Thanks for the answer (and sorry for the delay). I'm almost ready with the tests, going to buy next week. Wish you a happy new year! |
|
| Back to top |
|
 |
bmarinel
Joined: 03 Apr 2003 Posts: 18
|
Posted: Thu Feb 19, 2004 9:46 pm Post subject: |
|
|
Hi,
I have a large TMemoryStream (over 1MB) that I'm trying to put into a Sybase text field.
Here is my code:
MySQLQuery.ParamByName('MyTextField').LoadFromStream(MyMemoryStream, ftMemo);
It works fine, but only seems to write the first 32KB.
In my connection parameters I specify:
BlobSize=64000000
Does anyone know why this isn't working?
Regards,
Bill |
|
| Back to top |
|
 |
Mat000
Joined: 04 Nov 2003 Posts: 12
|
Posted: Sat Feb 21, 2004 1:37 pm Post subject: |
|
|
Hi,
There is no restriction on the size of the BLOb data you are putting to the table (except the restriction of the BLOb field itself, of course).
So, BlobSize parameter doesn't affect insert and update operations. Could you check if the necessary data were inserted into the table ?
Maybe, all data were inserted, but you are still retrieving first 32K. BlobSize parameter specifies the number of kilobytes. Try to set BlobSize=65536. This will be enough for 64 megabytes of BLOb data. |
|
| Back to top |
|
 |
bmarinel
Joined: 03 Apr 2003 Posts: 18
|
Posted: Sat Feb 21, 2004 3:48 pm Post subject: |
|
|
| Thank you. That worked. |
|
| Back to top |
|
 |
|