Quantcast
Channel: Dynamics User Group
Viewing all articles
Browse latest Browse all 15740

TextBuffer maximum size? Or better way to store large amount of text?

$
0
0

Does anyone here know what the maximum practical size of a TextBuffer would be?

I need to create a file that will contain some sensitive information, and I've been asked to try and send it out via FTP without ever writing it to disk. I'm thinking that I could save it to a TextBuffer, then copy that to a (CLR) MemoryStream, and send that out via the CLR FtpWebRequest class, or a similar third-party class.

The file shouldn't be more that 4 or 5 MB. I know that the .Net side won't have any problem with that, but I'm still getting my head around what AX can handle, and the documentation on this stuff is a bit scarce.

I'm also wondering if a TextBuffer is the best way to store something like this, or if an array or list of strings (one for each line in the file) would be better. Thanks in advance for any hints.


Viewing all articles
Browse latest Browse all 15740

Trending Articles