title: Save image from stream and get file path
body: <p>
  I want to save the image of my signature pad in my device and get the file path where I saved the image. I am using xamarin-controls-signature-pad nuget package to capture my signature. Please see my code below:</p>
  
  <pre class="lang-cs prettyprint-override"><code>Stream sigimage = await Signature.GetImageStreamAsync(SignaturePad.Forms.SignatureImageFormat.Png);
  
  string fileName = Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.Personal), signatureFile);
  
  using (var fileStream = new FileStream(fileName, FileMode.Create, FileAccess.Write))
  {
     await sigimage.CopyToAsync(fileStream);
  }
  
  if (File.Exists(fileName))
  {
      await DisplayAlert("File", "File exist", "ok");
  }
  else
  {
      await DisplayAlert("File", "File does not exist", "ok");
  }
  </code></pre>
  
  <p><a href="https://i.stack.imgur.com/MAyYb.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/MAyYb.jpg" alt="enter image description here"></a></p>