• Post Reply Bookmark Topic Watch Topic
  • New Topic

Saving Drawing to database.

 
Charlotte Niy
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Hi Sir,
How can I save drawing to database like MS SQL Server?
Does anyone of you have any links where I can learn ?
Thanks in advance.
 
Nura Horne
Ranch Hand
Posts: 40
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Drawings are binary data and every database serve handles this kind of data differently. To store a picture you will need to adopt a process similar to the following:
Convert Picture -> Suitable binary format, i.e. GIF et al.
Write binary data to database (see later)
To view:
Read binary data from DB -> Binary format
Decode binary format into suitable class such as Image
The technique used to store the data in the DB will require a datatype called Binary Large Objects or BLOBS. For the specifics of these you will need to see the manual for the particular RDBMS vendor you are using

Hope this puts you on the right track,
rgds, Arun
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!