如何从MySql数据库保存和检索图像文件

问题描述:

朋友,
我需要将图像文件存储在mysql数据库中,以后再需要从数据库中检索相同的图像文件.
因此,请帮帮我这个朋友.

Hi Friends,
I need to store the image file in the mysql database and later i need to retrieve the same image file from the database.
So,help me on this friends.

将图像保存在物理文件中,并使用路径引用将文件名保存在数据库中总是更好的选择. />
但是,您始终可以将物理映像保存在数据库中.

这里有一些链接,对您的浏览很有帮助,
使用ASP.NET在MySQL中存储图像 [ ^ ]
[
It would always be better to save images in physical file and save the file name with path reference in data base.

Though, you can always save the physical image in the db.

Here are few links, which will be helpful looking at it,
Storing Images in MySQL using ASP.NET[^]
[^]

Hope this helps.
cheers


检查以下内容:-使用ASP.NET在MySQL中存储图像 [
Check This one : - Storing Images in MySQL using ASP.NET[^]