简体   繁体   中英

How to Save the byte array to mp4 file in c#

I Have converted the mp4 file to byte array or (stream), Now i want to convert that byte array or (stream) to Mp4 file, i have searched in web regarding this concept but my problem not yet solved please give me guidence.

This is my code i have stream and byte[], i want to convert to mp4 file NetworkStream stream = client.GetStream(); int i; i = stream.Read(bytes, 0, bytes.Length);File.WriteAllBytes(@"C:\\Foo.mp4", bytes);

它不是MP4还是其他任何东西,如果它是字节数组,则可以使用File.WriteAllBytes这样将其保存到文件中。

 File.WriteAllBytes(myfilepath,mybytearray);

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM