Package com.microsoft.windowsazure.services.blob.models

Examples of com.microsoft.windowsazure.services.blob.models.CreateBlobOptions


    }

    @Test
    public void canUploadBlockBlobWithOptions() throws Exception {
        InputStream blobContent = new ByteArrayInputStream(firstPrimes);
        CreateBlobOptions options = new CreateBlobOptions().addMetadata(
                "testMetadataKey", "testMetadataValue");
        blobWriter.createBlockBlob("canUploadBlockBlobWithOptions",
                blobContent, options);
    }
View Full Code Here


        String content = "some content";
        service.createBlockBlob(
                TEST_CONTAINER_FOR_BLOBS,
                "test2",
                new ByteArrayInputStream(content.getBytes("UTF-8")),
                new CreateBlobOptions()
                        .setBlobCacheControl("test")
                        .setBlobContentEncoding("UTF-8")
                        .setBlobContentLanguage("en-us")
                        /* .setBlobContentMD5("1234") */.setBlobContentType(
                                "text/plain")
View Full Code Here

        String content = "some content";
        service.createBlockBlob(
                TEST_CONTAINER_FOR_BLOBS,
                "test2",
                new ByteArrayInputStream(content.getBytes("UTF-8")),
                new CreateBlobOptions()
                        .setBlobCacheControl("test")
                        .setBlobContentEncoding("UTF-8")
                        .setBlobContentLanguage("en-us")
                        /* .setBlobContentMD5("1234") */.setBlobContentType(
                                "text/plain")
View Full Code Here

    @Override
    public CreateBlobResult createBlockBlob(String container, String blob,
            InputStream contentStream) throws ServiceException {
        return createBlockBlob(container, blob, contentStream,
                new CreateBlobOptions());
    }
View Full Code Here

TOP

Related Classes of com.microsoft.windowsazure.services.blob.models.CreateBlobOptions

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.