First of all sorry if I'm repeating this question but I don't find any relevant solutions for my problem.I'm facing difficulty in finding the way to solve the below issues.1) I'm facing a scenario where I have to write more than 30 MB - 400 MB of data in a xml. When I'm using 'String' object to append the data to xml I'm getting 'OutOfMemory' exception.After spending more time in doing R&D, I came to know that using 'Stream' will resolve this issue. But I'm not sure about this. 2) Once I constructed the xml, I have to send this data to the DMZ server using Android devices. As I know sending large amount of data using Http is difficult in this situation. In this case,\[code\] a) Using FTP will be helpful in this scenario? b) Splitting the data into chunks of data and sending will be helpful?\[/code\]Kindly let me know your suggestions. Thanks in advance.