• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Saving Drawing to database.

 
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Ranch Hand
Posts: 40
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
reply
    Bookmark Topic Watch Topic
  • New Topic