Patent ID: 9537784
Date: 2017-01-03
CPC Classifications: H04L

Claim:
1. A computer program product for downloading a blob of data onto a mobile device, the computer program product comprising a computer readable storage medium having program code embodied therewith, the program code readable and executable by a processor to perform a method comprising: identifying a first network; identifying a blob of data that is to be downloaded from a server to a mobile device that are operating on the first network; identifying a first maximum chunk size for the first network, wherein the first maximum chunk size is a maximum amount of data that can be transmitted via the first network in a single session; determining a first timeout value for a first timeout, wherein the first timeout value is based on an expected amount of time required by the mobile device to receive a first chunk of data via the first network after transmission of the first chunk of data has begun, wherein the first chunk of data is of the first maximum chunk size for the first network, and wherein the first timeout will cause the mobile device to stop receiving the first chunk of data via the first network if the first chunk of data is not completely received by the mobile device within the expected amount of time; determining a first optimal chunk size for chunking the blob of data based on the first timeout value of the mobile device and the first maximum chunk size for the first network; partitioning the blob of data into chunks of data based on the first optimal chunk size; transmitting the chunks of data from the server to the mobile device; determining that an uncompressed file size of the blob of data is below a threshold THR in response to determining that the uncompressed file size of the blob of data is below the threshold THR