如何将音频,视频文件转换为二进制格式并存储在数组中 [英] how to convert the audio ,video file to binary format and store in array
本文介绍了如何将音频,视频文件转换为二进制格式并存储在数组中的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
如何将音频,视频文件转换为二进制格式并存储在数组中
how to convert the audio ,video file to binary format and store in array
推荐答案
您可以读取任何文件并将其存储在字节数组中,如下所示:
You can read any file and store in a byte array as follows:
byte[] bytes = File.ReadAllBytes("filename.ext");
这篇关于如何将音频,视频文件转换为二进制格式并存储在数组中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文