从MySQL检索WAV文件 [英] Retrieve wav file from mysql

查看:89
本文介绍了从MySQL检索WAV文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

谷歌搜索,我找到了将wave文件以blob格式存储在mysql数据库中的方法.

但是,如何从数据库中检索wave文件并将其作为音频流存储在c#中呢?

Googling i found the way to store wave file in mysql database as blob format.

But how to retrieve the wave file from the database and store it as audio Stream in c#?

推荐答案

您的Blob数据应该正是您存储它的方式.将其读为二进制文件并将其提供给您的流.

对于您的数据,您可以使用类似 [ ^ ]或 ^ ]
Well your blob data should be exactly the way you store it. Read it back as binary and feed it to you stream.

To your your data you can use something like this[^] or this[^]


这篇关于从MySQL检索WAV文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆