title: RestSharp upload image with imagesource. (Image exist only as Variable)
body: <p>How to upload a Image with RestSharp without using a local path.</p>
  <p>Image exists only in a Image Variable.</p>
  <p>All i found was with a string as path, but this is not the way i want to go.
  Or is it possible to get the string Path from a ImageSource?
  How can this be solved?</p>
  <p>My current code:</p>
  <pre><code>var client = new RestClient();
  var request = new RestRequest(PostImageUrl, Method.Post);
  request.AddOrUpdateHeader(&quot;Content-Type&quot;, &quot;multipart/form-data&quot;);
  request.AddFile(&quot;image&quot;, bauzeichnung);
  request.AlwaysMultipartFormData = true;
  var response = client.Execute(request);
  </code></pre>