在MySQL中存储图像 [英] Storing images in MySQL
本文介绍了在MySQL中存储图像的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
请给我有关在MySQL数据库中插入图像的查询.我是stackoverflow的新手,所以如果我的问题不符合要求,请忽略我.
Please give me the query for inserting images in a MySQL database. I am new to stackoverflow, so please ignore me if my question is not up to mark.
推荐答案
是否存在特定的原因,导致您无法存储对图像的引用而不是对实际图像的引用?
Is there a particular reason why you can't store a reference to the image, rather than the actual image?
图像很大,它们使数据库很大. SQL可能很痛苦(因为它不是面向对象的),并且没有图像类型.
Images are big—they make databases big. SQL can be painful (as it's not object-oriented) and doesn't have an image type.
如果要编写所有编码,编码,检查等,则可以将它们存储为BLOB
....
You could store them as a BLOB
... if you want to write all the coding, encoding, checking, etc.
这篇关于在MySQL中存储图像的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文