Android, OutOfMemory exception when building soap message
===

I'm developing application on Android and I have problem with it. I need to send few images via soap. Images has 3MB at all. But when I'm building soap String I got Exception
Out of memory. I think that I can write my soap message to the file instead of string variable and then moving in parts from file stream to http stream.
Is some other way to solve this problem?
Sorry for my english. 
Any help will be appreciated