microsoft-azure-storage/src/com/microsoft/azure/storage/file/CloudFile.java
public void uploadFromFile(final String path, final AccessCondition accessCondition, FileRequestOptions options,
            OperationContext opContext) throws StorageException, IOException, URISyntaxException {
        File file = new File(path);
        long fileLength = file.length();
        InputStream inputStream = new BufferedInputStream(new java.io.FileInputStream(file));
        this.upload(inputStream, fileLength, accessCondition, options, opContext);
        inputStream.close();
    }
public void uploadFromFile(final String path, final AccessCondition accessCondition, FileRequestOptions options,
            OperationContext opContext) throws StorageException, IOException, URISyntaxException {
        File file = new File(path);
        long fileLength = file.length();
        InputStream inputStream = new BufferedInputStream(new java.io.FileInputStream(file));
        this.upload(inputStream, fileLength, accessCondition, options, opContext);
        inputStream.close();
    }
public void uploadFromFile ( final String path , final AccessCondition accessCondition , FileRequestOptions options , OperationContext opContext ) throws StorageException , IOException , URISyntaxException { File file = new File ( path ) ; long fileLength = file . length ( ) ; InputStream inputStream = new BufferedInputStream ( new java . io . FileInputStream ( file ) ) ; this . upload ( inputStream , fileLength , accessCondition , options , opContext ) ; inputStream . close ( ) ; }
Uploads a file from a local file. If the file already exists on the service, it will be overwritten.

@param path
A <code>String</code> which represents the path to the file to be uploaded.
@param accessCondition
An {@link AccessCondition} object that represents the access conditions for the file.
@param options
A {@link FileRequestOptions} object that specifies any additional options for the request. Specifying
<code>null</code> will use the default request options from the associated service client (
{@link CloudFileClient}).
@param opContext
An {@link OperationContext} object that represents the context for the current operation. This object
is used to track requests to the storage service, and to provide additional runtime information about
the operation.

@throws StorageException
If a storage service error occurred.
@throws IOException
@throws URISyntaxException
Uploads a file from a local file . If the file already exists on the service it will be overwritten .