title: How to Convert Image URL to File in android
body: <p>I faced this problem in my project, and I need to pass image as a file Image's get from URL(Example: Image URL <a href="https://cnet4.cbsistatic.com/img/QJcTT2ab-sYWwOGrxJc0MXSt3UI=/2011/10/27/a66dfbb7-fdc7-11e2-8c7c-d4ae52e62bcc/android-wallpaper5_2560x1600_1.jpg" rel="nofollow noreferrer">this</a> url needs to convert into a file without download a image), mean image URL need to convert a file then it passed to the server.Analysized but I'm not getting any answer,</p>
  
  <pre><code>{
              "templateName": "e. Before-After(1).png",
              "templateId": "",
              "templateUrl": "https://cnet4.cbsistatic.com/img/QJcTT2ab-sYWwOGrxJc0MXSt3UI=/2011/10/27/a66dfbb7-fdc7-11e2-8c7c-d4ae52e62bcc/android-wallpaper5_2560x1600_1.jpg"
          }
  </code></pre>
  
  <p>From this response "templateUrl" need to convert file</p>