title: Out of memory on a byte allocation (Bitmap as String to webservice using soap)
body: <p>Am having a <code>bitmap</code> , so I want to upload a webserivceas string  and want to retrive the string.</p>
  
  <p>For converting bitmap to string am using:</p>
  
  <pre><code>ByteArrayOutputStream stream = new ByteArrayOutputStream();
  bitmap.compress(Bitmap.CompressFormat.PNG, 100, stream);
  byte[] byteArray = stream.toByteArray();
  
  strBase64 = Base64.encodeToString(byteArray, Base64.URL_SAFE);
  </code></pre>
  
  <p>this above <code>String</code> is using as property to in soapobject to upload.</p>
  
  <p>But am getting <code>Out of memory on a 11674900-byte allocation</code>, while print and uploading.</p>
  
  <p>And if i debugged the issue, without printing am getting </p>
  
  <pre><code>com.sun.jdi.InvocationException occurred invoking method.
  </code></pre>
  
  <p>on <code>soaprequest.</code></p>
  
  <p>How to resolve this issue and to <code>upload image</code> to webservice as string ?</p>