title: Out of memory while decoding Image using Base64 Decode
body: <p>I'm getting image data from a server and I'm converting it to byte[] using Base64.decode. My code works fine for small image sizes but for a particular image of size 9.2MB, it crashes. I have read about down sampling in various posts but before I could get to the sampling section of code, I'm getting a out of memory exception while reading the bytes in the following line of code.
  byte[] data = Base64.decode(attchData[i].getBytes(),0);</p>
  
  <p>Please help me out. </p>