microsoft-azure-storage/src/com/microsoft/azure/storage/file/CloudFile.java
@DoesServiceRequest
    public void upload(final InputStream sourceStream, final long length) throws StorageException, IOException, URISyntaxException {
        this.upload(sourceStream, length, null /* accessCondition */, null /* options */, null /* opContext */);
    }
@DoesServiceRequest
    public void upload(final InputStream sourceStream, final long length) throws StorageException, IOException, URISyntaxException {
        this.upload(sourceStream, length, null /* accessCondition */, null /* options */, null /* opContext */);
    }
@ DoesServiceRequest public void upload ( final InputStream sourceStream , final long length ) throws StorageException , IOException , URISyntaxException { this . upload ( sourceStream , length , null /* accessCondition */ , null /* options */ , null /* opContext */ ) ; }
Uploads the source stream data to the file. If the file already exists on the service, it will be overwritten.

@param sourceStream
An {@link InputStream} object to read from.
@param length
A <code>long</code> which represents the length, in bytes, of the stream data. Must be non zero.

@throws IOException
If an I/O exception occurred.
@throws StorageException
If a storage service error occurred.
@throws URISyntaxException
Uploads the source stream data to the file . If the file already exists on the service it will be overwritten .