title: creating .bmp image file from Bitmap class
body: <p>I've created an application that uses sockets in which the client receives the image and stores the data of the image in Bitmap class....</p>
  
  <p>Can anyone please tell me how to create a file named <strong>myimage.png</strong> or <strong>myimage.bmp</strong> from this Bitmap object</p>
  
  <pre><code>String base64Code = dataInputStream.readUTF();
  byte[] decodedString = null;
  decodedString = Base64.decode(base64Code);
  Bitmap bitmap = BitmapFactory.decodeByteArray(decodedString, 0,decodedString.length);
  </code></pre>