将MP3存储在数据库中 [英] Store MP3 in database

查看:148
本文介绍了将MP3存储在数据库中的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想在数据库中存储mp3文件.

[edit]主题,标签-OriginalGriff [/edit]

I want to store a mp3 file in database.

[edit]Subject, tags - OriginalGriff[/edit]

推荐答案

可以采用两种方法:

1)将mp3内容直接存储在数据库中.这可能不是一个好主意.大多数数据库将具有某种可用于此目的的Blob字段类型.

2)将文件路径存储为实际的mp3内容,这些路径将作为物理文件保留在服务器上.
There are two approaches to take:

1) Store the mp3 content directly in the DB. This is probably not a great idea. Most databases will have some kind of blob field type that you can use for this.

2) Store file paths to the actual mp3 content, which will remain as physical files on a server.


这篇关于将MP3存储在数据库中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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