title: convert android.graphics.Bitmap to java.io.File
body: <p>I want to upload edited Bitmap image to server using multipart uploading like this,</p>
  
  <pre><code>multipartEntity.addPart("ProfilePic", new FileBody(file));
  </code></pre>
  
  <p>But I can't convert <strong>Bitmap</strong>(<code>android.graphics.Bitmap</code>) image to <strong>File</strong>(<code>java.io.File</code>).</p>
  
  <p>I tried to convert it to byte array but It also didn't worked.</p>
  
  <p>Does anybody know inbuilt function of android or any solution to convert Bitmap to File?</p>
  
  <p>Please help...</p>