I’m now saving the snapshot this way:
vidBmpHolder.draw(main.media.videoLocal);
var jpgEncoder:JPGEncoder = new JPGEncoder(85);
var jpgStream:ByteArray = jpgEncoder.encode(vidBmpHolder);
var loader:URLLoader = new URLLoader();
var header:URLRequestHeader = new URLRequestHeader("Content-type", "application/octet-stream");
var request:URLRequest = new URLRequest("http://domain.name/savesnapshot.php");
request.requestHeaders.push(header);
request.method = URLRequestMethod.POST;
request.data = jpgStream;
loader.load(request);
But I want to save additional information :
key=value
Is there a work around?
You can try to add the key value pair at the url, for instance:
and then, on the php side:
EDIT: Added server side php script.