如何从MySql数据库保存和检索图像文件 [英] how to save and retrieve image file from MySql Database

查看:86
本文介绍了如何从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[^]


这篇关于如何从MySql数据库保存和检索图像文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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