converting byte array to video file

久未见 提交于 2019-12-01 12:43:42

If the byte array is already a video stream, simply serialize it to the disk with the extension mp4. (If it's an MP4 encoded stream).

Java

FileOutputStream out = new FileOutputStream("video.mp4");
out.write(videoData);
out.close();

C#

Stream t = new FileStream("video.mp4", FileMode.Create);
BinaryWriter b = new BinaryWriter(t);
b.Write(videoData);
t.Close();

Hope this helps!

Jeffrey Kevin Pry

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!