Win a copy of Getting started with Java programming language this week in the Beginning Java forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Camera Application  RSS feed

 
Uditha Senaratne
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi

I am developing a camera application for java enabled mobile devices. I can take snapshots from the camera of the mobile device using this application and save it in a database as a byte array. But when trying to retrieve that image I can't convert that byte array into the image again.
can somebody give me a solution for this problem....?
Thank you.............!
 
Tim Holloway
Bartender
Posts: 18512
61
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
These days, digital cameras often store images in JPEG format. So the first thing to do is check and see if the data stored in your database is in jpg format. If it isn't, you need to fix that. If it is, you need to set up your retrieval software to understand that the resource being displayed is jpg format. Since you're storing as a BLOB and not a file, there's no file extension to tell it.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!