I'm creating an app that creates large amounts of binary data in memory and then uploads it to nirvanix as a file.
I thought I would share this utility in case others might need to do the same.
The link below includes a class to upload a bytearray of any size to nirvanix and works in Flash, Flex, and AIR on or offline.
It uploads the data in chunks across multiple requests using the content-range feature.
It requires that you get the storage node and upload token on your own first, but provides a
quick wrapper class to hold the host, uploadToken, destFolderPath, and fileName
Example Usage:
var data:ByteArray = createYourMassiveByteArray();
var storageNode:NirvanixStorageNode = new NirvanixStorageNode();
storageNode.host = "...";
storageNode.uploadToken = "...";
storageNode.destFolderPath = "...";
storageNode.fileName = "...";
var uploader:NirvanixBinaryUploader = new NirvanixBinaryUploader(storageNode, data);
uploader.addEventListener(Event.COMPLETE, onComplete);
uploader.addEventListener(ProgressEvent.PROGRESS, onProgress);
uploader.upload();
http://www.digimix.com/nirvanix/NirvanixAS3BinaryUploader.zip