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 .