I have a BLOB in a content provider DB for storing movies.  Here's some 
code I have to try to get the data:

ContentResolver cr = context.getContentResolver();

Cursor c = cr.query(Movie_Auth.MOVIE_CONTENT_URI, null, null, null, null);
while (c.moveToNext())
{
String filename = c.getString(0);
byte[] b = c.getBlob(1);
Log.v("pulled movie", "file: " + filename + ", size: " + b.length);
}

Unfortunately, it gives this error:

03-12 13:40:08.420: E/CursorWindow(6385): need to grow: mSize = 1048576, 
size = 4386079, freeSpace() = 1048473, numRows = 1
03-12 13:40:08.420: E/CursorWindow(6385): Attempting to grow window beyond 
max size (1048576)
03-12 13:40:08.420: E/Cursor(6385): Failed allocating 4386079 bytes for 
blob at 0,1

Seems like there's a 1 meg limit on the cursor stuff.  Anyone know a way 
around this?

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to