将图像文件保存到数据库 [英] Saving a image file onto database
本文介绍了将图像文件保存到数据库的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
大家好,
我正在尝试上传文件,并且每当浏览完文件后必须选择提交按钮时,所选的图像文件都应传递给cotroller,然后传递给数据库.应在数据库中保存图像.
我尝试使用Ajax功能,但无法获得任何结果
我正在使用asp.net mvc3.
可以请提供有关如何使用Ajax功能实现此目的的示例吗?
谢谢,请检查以下内容: ^ ]
http://forums.asp.net/t/1782074.aspx/1 [ ^ ]
Hi all,
I am trying to upload a file and whenever i have to select submit button after browsing the file the selected image file should pass to cotroller and then to database.In the data base the image should be saved.
I tried using ajax functionality but couldn get anything
I am using asp.net mvc3.
could any please provide me sample on how to do this using ajax fuctionality
thanks
解决方案
Hi, have a check on this one: http://stackoverflow.com/questions/5743710/save-image-to-database-with-asp-net-mvc[^]
http://forums.asp.net/t/1782074.aspx/1[^]
这篇关于将图像文件保存到数据库的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文