eclipse - Read multiple files from a single file in Android -


i have single file consists of several png files. here the file structure:

first size of png image stored 4-byte value, png file data, , next file stored same way last file.

[file 1 size 4 bytes][file 1 data] [file 2 size 4 bytes][file 2 data] ..other file size , data 

i want know how can load png images one-by-one bitmap objects without extracting them separate files in android.

i can in windows: make file stream of main file, read 4 bytes file 1's size, create memory stream, copy file 1's data main file according data size read before, seek memory stream zero, load png memory stream, , repeat files 2, 3, 4,....

but not find solution android.


Comments

Popular posts from this blog

php - Vagrant up error - Uncaught Reflection Exception: Class DOMDocument does not exist -

vue.js - Create hooks for automated testing -

Add new key value to json node in java -