title: Convert Image into byte array in Xamarin.Forms
body: <p>I need to pass an image (<code>Image _thresholdedImage</code>) like byte array... I don't know how I can do this. Any idea? Thank you!</p>
  
  <pre><code>_thresholdedImage.Source = ImageSource.FromStream (() =&gt; photo.Source);
  
  var tessResult = await _tesseractApi.SetImage(imageBytes);
  </code></pre>