存储Mp3或用户上传的音频文件 [英] storage Mp3 or audio files uploaded by users

查看:74
本文介绍了存储Mp3或用户上传的音频文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好b $ b

我正在为唱片公司创建一个网站,使用户能够将他们的演示上传到网站。当谷歌搜索问题时,我发现大多数人都不赞成将文件存储在数据库中。



我的问题是我有什么替代方法来存储实际的文件数据库考虑到我必须能够从存储的位置检索文件这样的事实,以便职员可以在任何时候查看或收听它。



亲切的问候。

Hi
Im creating a site for a record company that enables users to upload their demos to the site. and when googling around the issue i find that most ppl frown against storing the files in the database.

My question is what alternatives do i have to storing the actual file in the database considering the fact that i must be able to retrieve the file from where ever its stored so the clerk may be able to view or listen to it when ever.

Kind Regards.

推荐答案

设置一个存储位置来保存服务器中的所有文件,甚至可以是保存数据库的同一系统。然后,您只需将每个文件的位置存储在数据库中即可快速访问。
Set up a storage location to hold all the files in a server, could even be the same system that holds the database. Then you just need to store the location of each file in the database for quick access.


这篇关于存储Mp3或用户上传的音频文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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