microsoft-azure-storage/src/com/microsoft/azure/storage/file/CloudFile.java
public void uploadFromByteArray(final byte[] buffer, final int offset, final int length) throws StorageException,
            IOException, URISyntaxException {
        uploadFromByteArray(buffer, offset, length, null /* accessCondition */, null /* options */, null /* opContext */);
    }
public void uploadFromByteArray(final byte[] buffer, final int offset, final int length) throws StorageException,
            IOException, URISyntaxException {
        uploadFromByteArray(buffer, offset, length, null /* accessCondition */, null /* options */, null /* opContext */);
    }
Uploads a file from data in a byte array. If the file already exists on the service, it will be overwritten.

@param buffer
A <code>byte</code> array which represents the data to write to the file.
@param offset
A <code>int</code> which represents the offset of the byte array from which to start the data upload.
@param length
An <code>int</code> which represents the number of bytes to upload from the input buffer.

@throws StorageException
If a storage service error occurred.
@throws IOException
@throws URISyntaxException