Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I divide my file into blocks of data and trasfer those blocks from my android app?

I want to be able to transfer blocks of my file instead of the complete file from my app inorder to transfer it more efficiently. What is the best way to do that?

Update

Here is an example of where I would need this approach : Say I have a 4GB file which I am trying to upload. If the network fails, my file upload will stop and I will have to start from scratch. Instead, if I keep track of the blocks that I have already transferred, I can continue from the blocks which were yet to be transferred. This is especially important for flaky network connections.

like image 584
Vinay Gaba Avatar asked Mar 15 '15 13:03

Vinay Gaba


1 Answers

May i know what kind of file you have. ?I am asking because if it is other than text file then i think you need meu law and A law or G711 or G729 algorithm.

like image 185
DJhon Avatar answered Oct 26 '22 14:10

DJhon