如何将音频文件存储在sqlite3数据库中并在iPhone中播放? [英] how do i store audio files in sqlite3 database and play them in iphone?

查看:240
本文介绍了如何将音频文件存储在sqlite3数据库中并在iPhone中播放?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想在数据库中存储音频文件(支持mp3,wav和iphone的任何格式) 并在iphone中播放它们...知道如何执行此操作吗?

i want to store audio files(any of these formats mp3,wav,and iphone supported) in database and play them in iphone...any idea how to do this?

推荐答案

我不知道您为什么要将音频文件存储在SQL数据库中,但sqlite3支持BLOB.因此,将它们存储为BLOB并检索它们.

I don't know why you would want to store the audio files in a SQL database but sqlite3 supports BLOB. So store them as BLOB and retrieve them.

或者为什么不存储对要播放的文件的引用?

Alternatively why not store references to the files that you want to play?

这篇关于如何将音频文件存储在sqlite3数据库中并在iPhone中播放?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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