Error reading file greater than 1MB

Put your problem here if it does not fit any of the other categories.

Error reading file greater than 1MB

Postby aabolin » Wed Apr 29, 2009 2:15 pm

Hi,

I'm trying to read a game 'resource' file - whose filesize is ~3.5MB

Syntax: [ Download ] [ Hide ]
Using java Syntax Highlighting
  1. InputStream inpfile = context.getResources().openRawResource(R.raw.demo01); //No problem here
Parsed in 0.031 seconds, using GeSHi 1.0.8.4


Now, when I try to read the InputStream, it returns error:
Syntax: [ Download ] [ Hide ]
Using java Syntax Highlighting
  1. Data exceeds UNCOMPRESS_DATA_MAX (3627188 vs 1048576)
Parsed in 0.030 seconds, using GeSHi 1.0.8.4


Please give me some hints to read files greater than 1MB.

Thank you.

- Augustine
aabolin
Freshman
Freshman
 
Posts: 4
Joined: Wed Apr 29, 2009 1:58 pm

Top

Postby aabolin » Mon May 04, 2009 4:54 am

Bump :roll:
Please suggest any hints / ideas..
aabolin
Freshman
Freshman
 
Posts: 4
Joined: Wed Apr 29, 2009 1:58 pm

Top

Return to Other Coding-Problems

Who is online

Users browsing this forum: Google [Bot] and 17 guests