Reputation: 31
I want to add new photo to picasa server using picasa API in as3. Can you tell me the form of http request and how to create binary image data to put in request.
API directory v2.0: https://developers.google.com/picasa-web/docs/2.0/developers_guide_protocol
Thanks for your help.
Upvotes: 3
Views: 473
Reputation: 247
You can get the binary data for a image like this.
var bd:BitmapData = new BitmapData(myImage.width, myImage.height, true,0xFFFFFFFF);
bd.draw(myImage);
Now you have the bitmap data of 'myImage' in var 'bd'.
Upvotes: 1