Stream based base64 encoding/decoding

  • Thread starter Thread starter nickdu
  • Start date Start date
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
 
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).
 
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.
 
Back
Top