I am facing OOM issue when i try to convert a large file > 50MB to string (using StringBuilder).
Have seen similar questions but none of the answer helped .
End motive is append the file data to xml attribute and transfer this to server .
Trying it on android device .
Code used is form this post : How do I create a Java string from the contents of a file?