开发者

how to store store flv file to array using C#

开发者 https://www.devze.com 2023-01-13 05:24 出处:网络
I have a 开发者_如何学Cflv file and I want to store it in array to do some operations in this array .

I have a 开发者_如何学Cflv file and I want to store it in array to do some operations in this array . how to store store flv file to array using C#?


You can use System.IO.File.ReadAllBytes() to read a file into a byte array.

byte[] myArray = System.IO.File.ReadAllBytes(@"myFlvFile.flv");


If you wish to keep a reference/object, then you can probably take the stream and store it in the array. or you can read it to a byte array and you can have an array of byte array.

0

精彩评论

暂无评论...
验证码 换一张
取 消