Stream based base64 encoding/decoding

N

nickdu

Is there a stream based approach to base64 encoding/decoding? The Convert
class only supports strings and arrays.
--
Thanks,
Nick

(e-mail address removed)
remove "nospam" change community. to msn.com
 
S

Steven Cheng

Hi Nick,

As for Base64 encoding/decoding, so far .NET framework only provide the two
methods of the Convert class. However, if you need to stream based
implementation, you can use reflector to inspect the implemenation of
Convert class and adopt the built-in class's code logic.

Sincerely,

Steven Cheng

Microsoft MSDN Online Support Lead


Delighting our customers is our #1 priority. We welcome your comments and
suggestions about how we can improve the support we provide to you. Please
feel free to let my manager know what you think of the level of service
provided. You can send feedback directly to my manager at:
(e-mail address removed).
 
G

Göran Andersson

nickdu said:
Is there a stream based approach to base64 encoding/decoding? The Convert
class only supports strings and arrays.

You can write a stream class that chops up the stream into four
character blocks or three byte blocks, which you can convert using the
methods in the Convert class.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top