Upload a new picasa photo via HTTP request actionscript 3

I want to add a new photo to picasa server using picasa API in as3. Can you tell me the HTTP request form and how to create the binary image data for the request.

API v2.0 directory: https://developers.google.com/picasa-web/docs/2.0/developers_guide_protocol

Thank you for your help.

+3
source share
1 answer

You can get binary data for an image like this.

    var bd:BitmapData = new BitmapData(myImage.width, myImage.height, true,0xFFFFFFFF);
    bd.draw(myImage);

You now have the raster data 'myImage' in var 'bd'.

+1
source

Source: https://habr.com/ru/post/1792966/


All Articles