且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

如何在C#中使用imagepath将图像保存在数据库中

更新时间:2023-02-15 11:58:09

对于图像,您需要使用一个称为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.