I want to take the image from drawable folder but it should be in the byte[] format.So that i can save that byte[] into the database.I have gone through links but that is taking image from drawable folder in String or Drawable format. Any suggestion for me plz..
Share
Obtain the drawable using
getResources()method.Type cast to BitmapDrawable,
Write a compressed version of the bitmap to the specified outputstream via compress method.