How do you convert a file in memory to a byte array?
I am using IonicZip to compress video files and stor开发者_高级运维e in a blob field. I have the zip file created just need to convert it to a byte array. How is this done without writing to the harddrive?
Thanks,
Dave
If you can write to a MemoryStream, you can use the "ToArray()" method on the MemoryStream to get a byte array.
精彩评论