我在C#做项目。我想从1表单中将图像插入到数据库中,并使用sql命令从数据库中检索图像到另一个表单 [英] I Am Doing Project In C#. I want to insert image into database from 1 form and retrive image from database using sql command in to another form

查看:68
本文介绍了我在C#做项目。我想从1表单中将图像插入到数据库中,并使用sql命令从数据库中检索图像到另一个表单的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

请帮我解决这个问题。

解决方案

用Google搜索?

你可以用

来做到这一点

1.在文件系统中保存图像及其在DB中的路径

2.在DB中保存图像(当你有更多的记录时,它在DB中占用大量空间)



参考此处:

http://aspsnippets.com/Articles/Upload-images-to-folder-and-display-uploaded-images -in-ASPNet-GridView-using-C-and-VBNet.aspx [ ^ ]

http://www.aspdotnet-suresh.com/2011/03/how- to-save-images-into-folder-and.html [ ^ ]

http://www.c-sharpcorner .com / uploadfile / 0c1bb2 / uploaded-images-to-database-using-asp-net-c-sharp / [ ^ ]

http://www.aspsnippets。 com / Articles /如何在数据库中保存插入图像在ASPNet中使用C-and-VBNet.aspx [ ^ ]

Please help me with this problem.

解决方案

Googled?
You can do this by

1.Saving image in file system and its path in DB
2.Saving image in DB(It occupy lot of space in DB when you have more no of records)

Refer here:
http://aspsnippets.com/Articles/Upload-images-to-folder-and-display-uploaded-images-in-ASPNet-GridView-using-C-and-VBNet.aspx[^]
http://www.aspdotnet-suresh.com/2011/03/how-to-save-images-into-folder-and.html[^]
http://www.c-sharpcorner.com/uploadfile/0c1bb2/uploading-images-to-database-using-asp-net-c-sharp/[^]
http://www.aspsnippets.com/Articles/How-to-save-insert-Image-in-Database-in-ASPNet-using-C-and-VBNet.aspx[^]


这篇关于我在C#做项目。我想从1表单中将图像插入到数据库中,并使用sql命令从数据库中检索图像到另一个表单的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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