I'm sure this may be a simple question, but unfortunately this is my first experience using Java and working with the Android SDK.
I upload files to Android using Apache HTTP libraries, in particular using MultipartEntity.
I upload to a service that allows me to send them chunks of a file, and as soon as they finish, they collect chunks. I would like to take this opportunity.
Here is the script.
The FOO.BAR file is 20 MB. I would divide it into several arbitrary sizes, say 1 MB, which means 20 pieces. Failure No. 3 and No. 14 (possibly cellular / WiFi was bad). Now I can reload only these two pieces, and everything will be fine.
I would like to know how can I read only part of the file (for example, data between 3 MB and 4 MB)?
The file must be an InputStream or File object.
Thanks Makoto
source share