如何在C#中使用imagepath将图像保存在数据库中 [英] how to save image with imagepath in database in c#

查看:119
本文介绍了如何在C#中使用imagepath将图像保存在数据库中的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

请一些帮助,以了解如何使用imagepath在数据库中保存图像,以及如何使用c#中的前端页面进行检索.

请一些帮助.

Pls some one help that how to save images with imagepath in database, and how to retrieve with the frontend page in c#.

Pls some one help.

thanks.

推荐答案

对于图像,您需要使用一个称为BLOB字段的特殊字段,对于imagepath,您只需创建一个varchar列即可.这可能会因所使用的数据库而异(此处未提及).
For an image you need to use a special field known as a BLOB field and for imagepath you could just create a varchar column. This could vary based on the database you are using (you have not mentioned it here).


如果您使用的是SQL数据库,则可以使用 ^ ]来查看可能对您有帮助的详细步骤.
if you are using SQL database then have a go there-[Uploading and Storing Image Path to Database and Image to Folder][^] to take a look for detail steps which will might help you.


这篇关于如何在C#中使用imagepath将图像保存在数据库中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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