如何从sqlite数据库存储和检索mp3文件?
我正在为一个孩子开发 Android 应用程序。我必须使用超过 500 个 mp3 文件。您能否简要介绍一下如何从 sqlite 存储和检索 mp3 文件?
如果您还有其他想法,请分享。
I am developing android apps for a child. I have to use more than 500 mp3 file. Can you give me a brief idea of how to store and retrieve the mp3 files from sqlite ?
If you have any other ideas, please share.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
您不要将 MP3 存储到数据库中。您将 MP3 的链接存储在数据库中很大差异。
试试这个链接 http://www.screaming-penguin.com/node/7742
You DONT store MP3s into a database. You store the link to the MP3s in the database BIG difference.
Try this link http://www.screaming-penguin.com/node/7742
将 mp3 文件存储在本地路径(即 SD 卡或手机内存中)并将该本地路径存储在数据库中。当您想播放该 mp3 文件时,从数据库中获取本地 url 并转到本地 url 路径并播放 mp3 文件。
Store mp3 file in local path(that is in sdcard or in phone memory) and store that local path in Database.When you want to play that mp3 file take local url from database and go to the local url path and play the mp3 file.
我的问题也和你有点相似...
检查此项
如果我将文件的本地路径存储到数据库中,当我在另一台设备上运行应用程序时如何访问该文件???
My problem is also somewhat similar to you...
check this
If I store local path of the file into database, how I'll be able to access the file when I run the app on another device????