Hello danergo,
Did you invoke this method in the main thread of the application? As you’re sending large data file which may create long latency, I would like to suggest you to make a separate thread to do this task.
Also please do a safe check with the data limits with SAPeerAgent.getMaxAllowedDataSize() API before sending large amount of data.