C#下的数据库类型 [英] Database type under c#
本文介绍了C#下的数据库类型的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
您好,我想在c#下的数据库中保存声音,我必须使用哪种声音类型以及如何检索此数据,任何可以帮助我消除路径"错误之类的建议. class ="h2_lin">解决方案
您可以为您拥有的音频文件创建流,然后将其保存在varbinary列中.当您取回数据时,可以将其转换回文件并在适当的播放器中播放.
hi again i want to save a voice in data base under c# what is the data type that i must use it and how i can retrieve this data ,any advice that help me to eliminate errors like "path"errors.
解决方案
You can create a stream for the audio file you have and then save it in a varbinary column. When you retrieve the data back, you can convert it back to a file and play it in appropriate player.
这篇关于C#下的数据库类型的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文