Tabnine Logo
BlockBlobURL.upload
Code IndexAdd Tabnine to your IDE (free)

How to use
upload
method
in
com.microsoft.azure.storage.blob.BlockBlobURL

Best Java code snippets using com.microsoft.azure.storage.blob.BlockBlobURL.upload (Showing top 4 results out of 315)

origin: com.microsoft.azure/azure-storage-blob

/**
 * Creates a new block blob, or updates the content of an existing block blob.
 * Updating an existing block blob overwrites any existing metadata on the blob. Partial updates are not
 * supported with PutBlob; the content of the existing blob is overwritten with the new content. To
 * perform a partial update of a block blob's, use PutBlock and PutBlockList.
 * For more information, see the
 * <a href="https://docs.microsoft.com/rest/api/storageservices/put-blob">Azure Docs</a>.
 * <p>
 * Note that the data passed must be replayable if retries are enabled (the default). In other words, the
 * {@code Flowable} must produce the same data each time it is subscribed to.
 * <p>
 * For more efficient bulk-upload scenarios, please refer to the {@link TransferManager} for convenience methods.
 *
 * @param data
 *         The data to write to the blob. Note that this {@code Flowable} must be replayable if retries are enabled
 *         (the default). In other words, the Flowable must produce the same data each time it is subscribed to.
 * @param length
 *         The exact length of the data. It is important that this value match precisely the length of the data
 *         emitted by the {@code Flowable}.
 *
 * @return Emits the successful response.
 *
 * @apiNote ## Sample Code \n
 * [!code-java[Sample_Code](../azure-storage-java/src/test/java/com/microsoft/azure/storage/Samples.java?name=upload_download "Sample code for BlockBlobURL.upload")] \n
 * For more samples, please see the [Samples file](%https://github.com/Azure/azure-storage-java/blob/master/src/test/java/com/microsoft/azure/storage/Samples.java)
 */
public Single<BlockBlobUploadResponse> upload(Flowable<ByteBuffer> data, long length) {
  return this.upload(data, length, null, null, null, null);
}
origin: Azure/azure-storage-java

/**
 * Creates a new block blob, or updates the content of an existing block blob.
 * Updating an existing block blob overwrites any existing metadata on the blob. Partial updates are not
 * supported with PutBlob; the content of the existing blob is overwritten with the new content. To
 * perform a partial update of a block blob's, use PutBlock and PutBlockList.
 * For more information, see the
 * <a href="https://docs.microsoft.com/rest/api/storageservices/put-blob">Azure Docs</a>.
 * <p>
 * Note that the data passed must be replayable if retries are enabled (the default). In other words, the
 * {@code Flowable} must produce the same data each time it is subscribed to.
 * <p>
 * For more efficient bulk-upload scenarios, please refer to the {@link TransferManager} for convenience methods.
 *
 * @param data
 *         The data to write to the blob. Note that this {@code Flowable} must be replayable if retries are enabled
 *         (the default). In other words, the Flowable must produce the same data each time it is subscribed to.
 * @param length
 *         The exact length of the data. It is important that this value match precisely the length of the data
 *         emitted by the {@code Flowable}.
 *
 * @return Emits the successful response.
 *
 * @apiNote ## Sample Code \n
 * [!code-java[Sample_Code](../azure-storage-java/src/test/java/com/microsoft/azure/storage/Samples.java?name=upload_download "Sample code for BlockBlobURL.upload")] \n
 * For more samples, please see the [Samples file](%https://github.com/Azure/azure-storage-java/blob/master/src/test/java/com/microsoft/azure/storage/Samples.java)
 */
public Single<BlockBlobUploadResponse> upload(Flowable<ByteBuffer> data, long length) {
  return this.upload(data, length, null, null, null, null);
}
origin: com.microsoft.azure/azure-storage-blob

return blockBlobURL.upload(data, file.size(), optionsReal.httpHeaders(),
    optionsReal.metadata(), optionsReal.accessConditions(), null)
origin: Azure/azure-storage-java

return blockBlobURL.upload(data, file.size(), optionsReal.httpHeaders(),
    optionsReal.metadata(), optionsReal.accessConditions(), null)
com.microsoft.azure.storage.blobBlockBlobURLupload

Javadoc

Creates a new block blob, or updates the content of an existing block blob. Updating an existing block blob overwrites any existing metadata on the blob. Partial updates are not supported with PutBlob; the content of the existing blob is overwritten with the new content. To perform a partial update of a block blob's, use PutBlock and PutBlockList. For more information, see the Azure Docs.

Note that the data passed must be replayable if retries are enabled (the default). In other words, the Flowable must produce the same data each time it is subscribed to.

For more efficient bulk-upload scenarios, please refer to the TransferManager for convenience methods.

Popular methods of BlockBlobURL

  • <init>
    Creates a BlockBlobURL object pointing to the account specified by the URL and using the provided pi
  • commitBlockList
    Writes a blob by specifying the list of block IDs that are to make up the blob. In order to be writt
  • delete
  • download
  • getBlockList
    Returns the list of blocks that have been uploaded as part of a block blob using the specified block
  • stageBlock
    Uploads the specified block to the block blob's "staging area" to be later committed by a call to co
  • stageBlockFromURL
    Creates a new block to be committed as part of a blob where the contents are read from a URL. For mo
  • toURL

Popular in Java

  • Creating JSON documents from java classes using gson
  • getApplicationContext (Context)
  • setScale (BigDecimal)
  • addToBackStack (FragmentTransaction)
  • MessageFormat (java.text)
    Produces concatenated messages in language-neutral way. New code should probably use java.util.Forma
  • List (java.util)
    An ordered collection (also known as a sequence). The user of this interface has precise control ove
  • Stream (java.util.stream)
    A sequence of elements supporting sequential and parallel aggregate operations. The following exampl
  • FileUtils (org.apache.commons.io)
    General file manipulation utilities. Facilities are provided in the following areas: * writing to a
  • Logger (org.apache.log4j)
    This is the central class in the log4j package. Most logging operations, except configuration, are d
  • Reflections (org.reflections)
    Reflections one-stop-shop objectReflections scans your classpath, indexes the metadata, allows you t
  • CodeWhisperer alternatives
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now