You are viewing limited content. For full access, please sign in.

Question

Question

SDK/Toolkit: problem saving binary data inside "data" field

asked on March 11, 2015

We have a custom app that is several years old, and incorporates the SDK/Toolkit to push documents and template data into Laserfiche. In particular, we write out a template field that is field type "data" (sometimes referred to as "blob"). It is my understanding that this type of field should be able to hold up to 2 GB. We are starting to get reports in 9.1 and 9.2 that anything over 32767 bytes in this field will fail with message "the parameter is out of range or too long". I've written test cases confirming that 32767 bytes works, but 32768 bytes or higher does not. Any suggestions to troubleshoot this?

0 0

Replies

replied on March 11, 2015

You can only store up to 32767 bytes in a field of type data. Data that's larger can be stored in an external database, or as an electronic document.

1 0
replied on March 11, 2015

Thanks Michael. Is that documented somewhere? And, did it only become restricted to 32767 as of a particular release? I'm nearly certain we went well over that number in 8.x.

0 0
replied on March 13, 2015

Actually, the limit should be 65536 bytes, not 32767. Are you storing Unicode characters? I don't recall when the limit was introduced, but it was done to increase server stability.

0 0
You are not allowed to follow up in this post.

Sign in to reply to this post.