Hello All,

I need to do a screen capture of a UIComponenet and allow the user to
save this to their local drive.  I understand thsi will need to go throu
the server.  I have read about the ImageSnapshot and PNGEncode methods
in SDK 3 so I can get the BitmapData ( this example is using SDK 2). 
What I don't see how to do is send this to the server.  I am trying
this:

//get the data
var exportImage:BitmapData =  new BitmapData(100,100);
exportImage.draw(UIComponenet_name);

var outData:ByteArray = new ByteArray();
outData.readBytes(exportImage.getPixels(new Rectangle(0,0,100,100)));

var sendImage:HTTPService = new HTTPService();
sendImage.method = "POST";
sendImage.url = "http://www.host.com/serverSave.php
<http://www.host.com/serverSave.php> ";
sendImage.send({HTTP_RAW_POST_DATA:outData.writeBytes(outData),
name:'image.png'});


  This is not working and it is only a guess.  How can I send the data or
is it possibile to do this as a POST??

Thanks,



Jeff

Reply via email to