如何借助asp.net中的fileupload控件将图像上传到数据库中 [英] How to upload a image into database with the help of fileupload control in asp.net
本文介绍了如何借助asp.net中的fileupload控件将图像上传到数据库中的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我想将图像存储在profile_table中,其列是profilepic,数据类型是varbinary
请告诉我如何使用asp.net中的fileupload上传它
解决方案
老实说,一次又一次地回答数千次问题是一件坏事。它是这些的组合:
http://www.codeproject.com/search.aspx?doctypeid=5&q=database+%28image+OR+picture%29+%28store+OR+获取+ OR +检索%29 [ ^ ],
http://www.codeproject.com/search.aspx?doctypeid=5&q=ASP.NET+upload [< a href =http://www.codeproject.com/search.aspx?doctypeid=5&q=ASP.NET+uploadtarget =_ blanktitle =New Window> ^ ]。
如果您对答案给予足够的重视,您将找到所需的一切。我只引用了CodeProject搜索查询。想象一下,如果您使用Google或Bing,您可以找到多少!
-SA
< blockquote>你好Asit,
我希望这个链接 [ ^ ]会对你有所帮助。
问候,
RK
I want to store image in profile_table and its column is profilepic and datatype is varbinary
please tell me how can i upload it by using fileupload in asp.net
解决方案
Honestly, it would be a bad thing to answer the question asked many thousands times again and again. It''s a combination of these:
http://www.codeproject.com/search.aspx?doctypeid=5&q=database+%28image+OR+picture%29+%28store+OR+get+OR+retrieve%29[^],
http://www.codeproject.com/search.aspx?doctypeid=5&q=ASP.NET+upload[^].
You will find all you need, if you pay enough attention for the answers. And I only referenced CodeProject search queries. Imagine how much you can find if you use, say, Google or Bing!
—SA
Hi Asit,
I hope this link [^] would help you a bit.
Regards,
RK
这篇关于如何借助asp.net中的fileupload控件将图像上传到数据库中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文