Click here to Skip to main content
15,885,366 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi!

I am working in VB.Net 2010 with SQL Server 2014.

I need to save an image from a picture box to the database field (type=image) and also retrieve back that image and show it in the same picture box.
I also want to maintain the image quality as the original file.

Can anyone help me !

Thanks
Posted

1. Did you try to break your issue down into smaller ones and search for the solution ?
2. If yes, what have tried so far ?
3. If you have, where did you stuck ?
4. And if you stuck, what's that issue ?

And I assume, you didn't try any of this.

"You won't be learn anything, if you expect others do your work for you".
You can try something on your own at first and when you stuck anywhere, anyone from here would do his/her best to help you out. But don't directly ask for the source code.

Read the Code Project Quick Answers FAQ[^] first :)


-KR
 
Share this answer
 
It would be not good to answer again and again to the question asked so many times: http://www.codeproject.com/search.aspx?q=%28%22.NET%22+OR+%22C%23%22+OR+%22VB.NET%22%29+SQL+%28image+OR+pictures+OR+bitmaps%29&doctypeid=1%3b2%3b3%3b13%3b14[^].

Also, in many cases, such as the images used in a Web site/application, it can be better to store the images in the server-side file system; then they should have some unique file names; and the SQL is used for storing just names, which would make database use way more efficient.

—SA
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Top Experts
Last 24hrsThis month


CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900