I would like to know how I can transform an image that I have in the drawble file to a Bitmap or a byte array in java code.
Example:
Bitmap elBitmap=R.drawble.nombreDelaImagen;
I know that this is not possible in java but it is an example so you can see what I want to get to, I would like to know if there is any method that I can use to be able to convert the saved image of the drawble file to a bitmap or a byte[].
From the bitmap you can get an array of bytes like this