954,141 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

save GDI+ image into sql 2005 database

how to save an image drawn with GDI+ to sql 2005 database?

waterfall
Newbie Poster
24 posts since Nov 2007
Reputation Points: 10
Solved Threads: 0
 

SQL has the ability to store any type of data into a blob field. Just stream the data into the column. There are many examples on Code Project, and other sites on how to do this.

JerryShaw
Posting Pro in Training
465 posts since Nov 2006
Reputation Points: 69
Solved Threads: 75
 

I found help for uploading images.
But i have drawn an image using GDI+ and i want to save that image.

waterfall
Newbie Poster
24 posts since Nov 2007
Reputation Points: 10
Solved Threads: 0
 

Simple, save the image as a picture format and then upload it to the sql server in a BLOB format.

While using GDI+ check this website you on how to save images.

http://www.devx.com/.net%20zone/Article/10031/0/page/5

Atleast this should get you going.

blacklocist
Junior Poster in Training
87 posts since Apr 2006
Reputation Points: 10
Solved Threads: 2
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You