title: How can I make an Image in a FileImageSource format?
body: <p>I have a picture that I want to store in my database as a file so I guess I have to use the FileImageSource to get it into the correct format. </p>
  
  <p>This is my code:</p>
  
  <pre><code>imgPicked.Source = FileImageSourceConverter; ???
  </code></pre>
  
  <p>How would I make my imgPicked (Image in my xaml) to a fileimagesource?</p>
  
  <p>Update:</p>
  
  <p>Database;</p>
  
  <pre><code>static public async Task&lt;bool&gt; createData (string userId, FileImageSource thePicture )
  
      {
          var httpClientRequest = new HttpClient ();
  
          httpClientRequest.DefaultRequestHeaders.Add ("X-Parse-Application-Id", appId);
          httpClientRequest.DefaultRequestHeaders.Add ("X-Parse-REST-API-Key", apiKey);
  
          var postData = new Dictionary &lt;object, object&gt; ();
  
          postData.Add ("Owner", userId);
          postData.Add ("thePicture", thePicture);
  
   }
  </code></pre>
  
  <p>CreateImage in database;</p>
  
  <pre><code>          void Click (object sender, Eventargs args)
           {
           var createResult = await parseAPI.createData 
              (Application.Current.Properties ["userId"].ToString (), imgPicked); 
  //imgPicked (xaml image) gives me an error: Cannot convert "Xamarin.Forms.Image" expression to type "Xamarin.Forms.FileImageSource"
           }
  </code></pre>