Added methods to upload and download NSData instead of files.