• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Camera Application

 
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
Saloon Keeper
Posts: 18359
56
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