如何将图像保存到我的SQL数据库

如何将图像保存到我的SQL数据库

问题描述:

你好,

我正在开发一个asp.net mvc3应用程序.我必须在mysql中创建表以将图像存储在数据库中.是否可以将图像存储到数据库中或必须存储图像路径.桌子.请给予支持

问候
prasanna

Helo,

Iam developing an asp.net mvc3 application.I had to create table in mysql to store images in database.Is it possible to store images into the database or i have to store image path.If to store image path how i hat to give in the table.Please give your support

Regards
prasanna

hi prasanna kumari,
检查以下链接,您可能会有所了解,

使用ASP.NET在MySQL中存储图像 [ ^ ]

问候,
Bluesathish
hi prasanna kumari,
Check this below link you may get some idea,

Storing Images in MySQL using ASP.NET[^]

Regards,
Bluesathish


.是否可以将图像存储到数据库中,或者我必须存储图像路径.
建议将图像路径存储在数据库中.

如果要存储图像路径,我该如何在表中给出
在数据库表中,它将存储为"image-path"-正常字符串作为varchar字段.
.Is it possible to store images into the database or i have to store image path.
It is suggestible to store image path in database.

If to store image path how i hat to give in the table
In database table, it would be stored as ''image-path'' - normal string as a varchar field.