将二进制文件转换为.wav,然后使用c Sharp读取文件.wav? [英] Convert binary file to .wav and then read the file .wav with c sharp?
本文介绍了将二进制文件转换为.wav,然后使用c Sharp读取文件.wav?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在用c shrp做一个项目,这需要我对wave文件进行加密.那么,是否存在将wave文件转换为二进制文件并返回的简单方法?我将对二进制数据应用加密算法.
I''m doing a project in c shrp which requires me to encrypt a wave file. So, is there a straight forward process to convert a wave file into binary and back? I''ll be applying an encryption algorithm on the binary data.
推荐答案
所有文件都是二进制文件.这就是计算机存储的工作方式.
但是,最简单的读入加密方式可能是 System.IO.File.ReadAllBytes [
All files are in binary. That''s how computer storage works.
But the simplest way of reading it in for encryption would probably be System.IO.File.ReadAllBytes[^] (I''d link you to Microsoft''s documentation for it but MSDN is down today).
这篇关于将二进制文件转换为.wav,然后使用c Sharp读取文件.wav?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文