参考这个,源码可下载:http://www.codeproject.com/Articles/32216/How-to-store-and-fetch-binary-data-into-a-file-str