I had a look for outofmemory exception questions but I couldn't find out a way for my problem. I have an application which processes images. I need to get RGB values of each pixel of the image. I can do it when I choose image from whatsapp file because they have small size but if I want to choose images from gallery(taken via camera) or if I want to take photo from camera directly I have outofmemeory exception. I don't want to scale down image because I need all pixels' information of the image.
I have the file and name information of the image as a string, I get this exception when I decode the string as shown below;
imgDecodableString = intent3.getStringExtra("BMP");
rotatedBitmap = BitmapFactory.decodeFile(imgDecodableString);
Is there any way to handle this problem? Thanks in advance .