I get the following error when I want to read a large image (around 10MB) I have previously saved to my database:
Window is full: requested allocation 10052488 bytes, free space 2096638 bytes, window size 2097152 bytes
java.lang.IllegalStateException: Couldn't read row 0, col 0 from CursorWindow
However upon saving the image, no error occurs. I use the following line of code to get the value:
value = cursor.getString(fieldIndex);
Reading this question has led me to believe that there is no solution other than not saving the image to the database. However I'm on a tight schedule, and changing this part of the code would take me quite a while, so if there's any way to get it to work, I'd be very grateful for any tips / hacks / workarounds.
The same line of code works perfectly well for smaller images (I just tried it with a 6MB image without any problems), so I'm quite sure there are no errors in my Java code. Also the saving process of the image makes no problems at all.