title: How to upload a BitmapData Object straight to my server?
body: <p>I wish to upload from my Flash Application (AS3) to imageshacks XML API. I wish to know how I can do this.</p>
  
  <p>"In Flash, we must POST the data using the UrlRequest and UrlLoader classes, however we run into a limitation of the Flash API. The data property of a UrlRequest can either be a UrlVariablesByteArray object. There is no easy way to send name value pairs along with the JPG byte array. This is a big problem, because most upload applications will require a filename and other headers to accompany the raw file data"</p>
  
  <p>I was hoping if someone could help me overcome the above!</p>
  
  <p>Thanks all</p>
  
  <h2>Update</h2>
  
  <p>I have tried making use of this tutorial here:<a href="http://www.mikestead.co.uk/2009/01/04/upload-multiple-files-with-a-single-request-in-flash/" rel="noreferrer">http://www.mikestead.co.uk/2009/01/04/upload-multiple-files-with-a-single-request-in-flash/</a></p>
  
  <p>The problem is it's not for unsaved images, but it get images from your local machine and then uploads it to the server where the images has had a name already!</p>