By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
434,896 Members | 1,983 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 434,896 IT Pros & Developers. It's quick & easy.

Beside string, what can I used to store line greater than 2046 bytes

P: n/a
Hi,

In my code, I accept very long string, which may be greater than 2046
bytes. String can not exceed this limit. What else can I use to store
these very long string?

Thanks,

Sep 29 '06 #1
Share this Question
Share on Google+
2 Replies


P: n/a
Where did you get that idea.

The maximum allowed length of a string is 1 byte less than 2 Gigabytes or 1
byte less than 2046 Megabytes.
<Ab******@gmail.comwrote in message
news:11**********************@e3g2000cwe.googlegro ups.com...
Hi,

In my code, I accept very long string, which may be greater than 2046
bytes. String can not exceed this limit. What else can I use to store
these very long string?

Thanks,

Sep 29 '06 #2

P: n/a
<Ab******@gmail.comwrote:
In my code, I accept very long string, which may be greater than 2046
bytes. String can not exceed this limit. What else can I use to store
these very long string?
Strings can certainly exceed this limit very easily.

Could you post a short but complete program which demonstrates the
problem?

See http://www.pobox.com/~skeet/csharp/complete.html for details of
what I mean by that.

--
Jon Skeet - <sk***@pobox.com>
http://www.pobox.com/~skeet Blog: http://www.msmvps.com/jon.skeet
If replying to the group, please do not mail me too
Sep 29 '06 #3

This discussion thread is closed

Replies have been disabled for this discussion.