# Saving bytearray to server as a zip

**URL:** https://forum.kirupa.com/t/saving-bytearray-to-server-as-a-zip/298657
**Category:** Uncategorized
**Created:** [October 22, 2009, 3:07pm UTC](https://forum.kirupa.com/t/saving-bytearray-to-server-as-a-zip/298657 "2009-10-22T15:07:25Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![philipip](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/philipip/32/1231_2.png) [@philipip](https://forum.kirupa.com/u/philipip)
#### Post date: [October 22, 2009, 3:07pm UTC](https://forum.kirupa.com/t/saving-bytearray-to-server-as-a-zip/298657/1 "2009-10-22T15:07:25Z")

</div>

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](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.

```auto

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
