.net - How do you convert a file in memory to a byte array? -


I am using IonicZip to insert video files and am storing in a Blob field. I have a zip file created, it needs to be converted to only one byte array. I have done this without writing the harddrive

thanks,

Dave

< / Div>

If you can write on MemoryStream, you can use the "ToArray ()" method on MemoryStream to get a byte array Can be used.


Comments

Popular posts from this blog

c# - sqlDecimal to decimal clr stored procedure Unable to cast object of type 'System.Data.SqlTypes.SqlDecimal' to type 'System.IConvertible' -

Calling GetGUIThreadInfo from Outlook VBA -

Obfuscating Python code? -