﻿<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/"><channel><title>博客园-江大鱼的BLOG-随笔分类-English</title><link>http://www.cnblogs.com/jzywh/category/36717.html</link><description>原创文章转载请注明出处</description><language>zh-cn</language><lastBuildDate>Sun, 18 May 2008 18:49:11 GMT</lastBuildDate><pubDate>Sun, 18 May 2008 18:49:11 GMT</pubDate><ttl>60</ttl><item><title>Base64 encode/decode large file</title><link>http://www.cnblogs.com/jzywh/archive/2008/04/20/base64_encode_large_file.html</link><dc:creator>江大鱼</dc:creator><author>江大鱼</author><pubDate>Sun, 20 Apr 2008 13:48:00 GMT</pubDate><guid>http://www.cnblogs.com/jzywh/archive/2008/04/20/base64_encode_large_file.html</guid><wfw:comment>http://www.cnblogs.com/jzywh/comments/1162925.html</wfw:comment><comments>http://www.cnblogs.com/jzywh/archive/2008/04/20/base64_encode_large_file.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.cnblogs.com/jzywh/comments/commentRss/1162925.html</wfw:commentRss><trackback:ping>http://www.cnblogs.com/jzywh/services/trackbacks/1162925.html</trackback:ping><description><![CDATA[&nbsp;&nbsp;&nbsp;&nbsp; 摘要: The class System.Convert provide two basic methods "ToBase64String()" and "Convert.FromBase64String()" to encode a byte array to a base64 string and decode a base64 string to a byte array.<br><br>It is very good to use them to encode and decode base64. But in some case, it is a disaster.<br><br>For example, if you want to encode a 4 gb file to base64, the code above must throw an OutOfMemory exception., because you must read the file into a byte array. So we need to look for another way to e&nbsp;&nbsp;<a href='http://www.cnblogs.com/jzywh/archive/2008/04/20/base64_encode_large_file.html'>阅读全文</a><img src ="http://www.cnblogs.com/jzywh/aggbug/1162925.html?type=1" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://jzywh.cnblogs.com/" target="_blank">江大鱼</a> 2008-04-20 21:48 <a href="http://www.cnblogs.com/jzywh/archive/2008/04/20/base64_encode_large_file.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item></channel></rss>