I wish to upload from my Flash Application (AS3) to imageshacks XML API. I wish to know how I can do this.
\"In Flash, we must POST the data using the UrlRequest and
This was of great help to me: http://kitchen.braitsch.io/upload-bitmapdata-snapshot-to-server-in-as3/
You need to modify the URLRequestWrapper to insert field names and file names where needed. Here's what I've done:
bytes = 'Content-Disposition: form-data; name="' + $fieldName + '"; filename="';
It does the most formatting of headers so the server could understand it as a file upload.
By the way, if you have a BitmapData you might need to encode it to JPEG or PNG first.
Regards, Artem