Saving bytearray to server as a zip

hi, could anyone point me to the right direction.

I trying to save an byteArray to the server as an zip using nochump AS3 Zip Library (http://nochump.com/blog/?p=15). I’ll belive I’m quite near with the as stuff, but can’t figure out how the php handles the byteArray.


var zipData:ByteArray = zip.byteArray;

var header:URLRequestHeader = new URLRequestHeader ("Content-type", "application/octet-stream");
var urlReq:URLRequest = new URLRequest("http://mysite.lo/upload.no);
urlReq.requestHeaders.push (header);
urlReq.method = URLRequestMethod.POST;
urlReq.data = zip;                
                
var loader:URLLoader = new URLLoader();
loader.load(urlReq);

cheers