什么是将音频或视频文件插入mysql的查询 [英] what is the query to insert audio or video files into mysql

查看:70
本文介绍了什么是将音频或视频文件插入mysql的查询的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

这是一个简单的问题,但我找不到合适的查询来将音频或视频文件插入到mysql中



我想要做的是存储音频和mysql数据库中的视频文件

所以我使用下面的查询创建表格

创建表格电子书(

名称varchar(20)not null,

data mediumblob);



那么,我应该写什么查询来插入音频或视频文件?

It's a simple question, but I couldn't find an appropriate query to insert audio or video files into mysql

what I want to do is to store audio and video files in mysql database
so I create table using below query
create table ebook(
name varchar(20) not null,
data mediumblob);

then, what query should I write to insert audio or video files?

推荐答案

我建​​议将音频和视频文件存储在某个存储设备中,并仅将其路径和元信息存储在数据库中。当您需要检索这些媒体文件时,请在数据库中查找它们的路径。

了解更多:什么是最好的存储媒体文件在数据库上的文件 [ ^ ]
I suggest storing the audio and video files in some storage device and only store their paths and meta information in the database. When you need to retrieve these media files, then look for their paths in the database.
Read more: what-is-the-best-way-to-store-media-files-on-a-database[^]


这篇关于什么是将音频或视频文件插入mysql的查询的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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