import com.adobe.images.JPGEncoder;
var jpgSource:BitmapData = new BitmapData (myMovieClip_mc.width, myMovieClip_mc.height);
jpgSource.draw(myMovieClip_mc);
var jpgEncoder:JPGEncoder = new JPGEncoder(85);
var jpgStream:ByteArray = jpgEncoder.encode(jpgSource);
var header:URLRequestHeader = new URLRequestHeader("Content-type", "application/octet-stream");
var jpgURLRequest:URLRequest = new URLRequest("http://www.yourwebsite.com/SaveFlashImage.aspx");
jpgURLRequest.requestHeaders.push(header);
jpgURLRequest.method = URLRequestMethod.POST;
jpgURLRequest.data = jpgStream;
sendToURL(jpgURLRequest);
|