I am getting an OOM error from loading a large bitmap using BitmapFactory.decodeResource. I have seen other suggestions about compressing the image but for my app, preserving quality is absolutely necessary. Eventually I need to get the image into a byte/pixel array. Is there any way to get all of the pixels into an array without having to reduce quality or 'tile' the bitmap?
Also, I don't need to keep the bitmap, only the byte array (or an array of pixels). The code I'm writing will search the array. It will all eventually be implemented into a more complex app (written by someone else, hence my inexperience with android).
FileInputStreamand the like? - Grambot