DaniWeb IT Discussion Community

DaniWeb IT Discussion Community (http://www.daniweb.com/forums/index.php)
-   C# (http://www.daniweb.com/forums/forum61.html)
-   -   XmlTextReader.ReadBase64 (http://www.daniweb.com/forums/thread44205.html)

tgreer Apr 26th, 2006 7:11 pm
XmlTextReader.ReadBase64
 
Does anyone have a good example of how to use this method? All of the MSDN examples I could find are useless because:
  1. they show a hard-coded size for the byte array
  2. they show writing the output to the Console
Ridiculous. I have a file that contains some binary image data (PCL format) that is base64 encoded. I simply need to read that, decode it back to raw binary, and write it out to a file.

All my attempts run, but do not produce usable output.

_r0ckbaer Apr 27th, 2006 4:46 pm
Re: XmlTextReader.ReadBase64
 
What about having a look at Convert.ToBase64String and Convert.FromBase64String ?


All times are GMT -4. The time now is 11:58 am.

Forum system based on vBulletin Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
©2003 - 2009 DaniWeb® LLC