VISOCO Software  Home | Products | Services | Download | Order | Support | Forum | Resources | Search | About
  RSS feedRSS Feed  FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups  RegisterRegister   ProfileProfile    Log inLog in 
BlobSize parameter

 
Post new topic   Reply to topic    VISOCO Software Forum Index -> VISOCO dbExpress driver for Sybase ASE
Author Message
Michael



Joined: 25 Nov 2003
Posts: 3

PostPosted: Tue Nov 25, 2003 6:40 pm    Post subject: BlobSize parameter Reply with quote

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
View user's profile Send private message
VISOCO
VISOCO Software Manager


Joined: 15 Jul 2002
Posts: 48

PostPosted: Thu Nov 27, 2003 6:03 pm    Post subject: BlobSize parameter Reply with quote

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
View user's profile Send private message Send e-mail Visit poster's website
Michael



Joined: 25 Nov 2003
Posts: 3

PostPosted: Tue Dec 30, 2003 4:14 pm    Post subject: BlobSize parameter Reply with quote

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
View user's profile Send private message
bmarinel



Joined: 03 Apr 2003
Posts: 18

PostPosted: Thu Feb 19, 2004 9:46 pm    Post subject: Reply with quote

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
View user's profile Send private message
Mat000



Joined: 04 Nov 2003
Posts: 12

PostPosted: Sat Feb 21, 2004 1:37 pm    Post subject: Reply with quote

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
View user's profile Send private message
bmarinel



Joined: 03 Apr 2003
Posts: 18

PostPosted: Sat Feb 21, 2004 3:48 pm    Post subject: Reply with quote

Thank you. That worked.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    VISOCO Software Forum Index -> VISOCO dbExpress driver for Sybase ASE All times are GMT + 2 Hours
Page 1 of 1

 


©VISOCO Software. phpBB by phpBB Group