Jonathan wrote: > I have a fairly large asset (about 2mb) that I would like to process. > I only need to read from the InputStream 24 bytes at a time. I get > IOExceptions for reads on files over a meg (via the AssetManager). > > I don't need to load the entire file into memory or anything, I just > need to read it 24 bytes at a time. Is there a way I can open the > file that wont throw an IOException when I attempt to read it? > > I've verified that it works for files under a meg.
IIRC, this problem comes from trying to access files that were compressed as part of building the APK. Hence, to work around the issue, give it a file extension that won't be compressed. I forget the list of what extensions are skipped, but file types known to already be compressed (e.g., mp3, jpg) may work. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy Warescription: Three Android Books, Plus Updates, $35/Year --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---

