0

I have this scenario. The app allows me to take a pic of something and save it to a sqlite db. By now this app captures the image from the camera device and displays it on an ImageView. The problem is how to obtain this image from the ImageView and parse it to a byte array

jcvegan
  • 3,111
  • 9
  • 43
  • 66
  • Refer to this link [Byte Array image](http://stackoverflow.com/questions/5212531/android-byte-to-image-in-camera-onpreviewframe) or this [Storing image](http://stackoverflow.com/questions/11684737/storing-images-in-drawable-folder-and-getting-the-image-to-load-by-using-the-ima) – Numair Aug 02 '12 at 16:54

1 Answers1

1

Have you looked at the API?

It's simply

Drawable image = imageview.getDrawable();

to get the image.

tolgap
  • 9,629
  • 10
  • 51
  • 65