如何从sqlite数据库存储和检索mp3文件?

发布于 2025-01-02 09:00:49 字数 108 浏览 3 评论 0原文

我正在为一个孩子开发 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

帅气称霸 2025-01-09 09:00:49

不要将 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

菩提树下叶撕阳。 2025-01-09 09:00:49

将 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.

昵称有卵用 2025-01-09 09:00:49

我的问题也和你有点相似...
检查此项

如果我将文件的本地路径存储到数据库中,当我在另一台设备上运行应用程序时如何访问该文件???

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????

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文