In this the UIImage is converted into in NSData Data is divided into chunks. Chucks are send to server sequentially ,  if failed to upload same chuck is resend, else if successful next chuck is sent server