Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Saving Graphics  RSS feed

 
kiran nori
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,
I have generated some image using AWT during runtime. I want to store this image so generated on to my hard drive. can any one please tell as to how I can do this. if some sample code is availble please send it to me
rgds
Kiran Mohan Nori
 
Rashid Ali
Ranch Hand
Posts: 349
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Dear Kiran
By going through with Java I/O package (which details and example can be found in any java book), you will be able to store these images, i think, using ObjectOutputStream() class to write and ObjectInutStream to read from disk and some more classes in chain.
I don't have example of this at present, but if you have Beginning Java2 Book of Ivor Horton then you can go through with their detailed java i/o package capabilities they have demonstrated in their book.
Hope it helps. Should you have any querry, do let us know.
Good luck
Rashid Ali
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!