@@ -1457,7 +1457,7 @@ public void exampleFileTransfer() throws IOException, InvalidKeyException {
14571457 We create a simple flowable for the purposes of demonstration, but the Flowable in question need not
14581458 produce a repeatable sequence of items. A network stream would be a common use for this api.
14591459 */
1460- Flowable <ByteBuffer > data = Flowable .just (ByteBuffer .allocate (0 ));
1460+ Flowable <ByteBuffer > data = Flowable .just (ByteBuffer .allocate (1 ));
14611461 return TransferManager .uploadFromNonReplayableFlowable (data , blobURL , 4 * 1024 * 1024 , 2 , null );
14621462 })
14631463 .flatMap (response ->
@@ -1578,7 +1578,7 @@ public void exampleLazyEnumeration() throws MalformedURLException, InvalidKeyExc
15781578 URL u = new URL (String .format (Locale .ROOT , "https://%s.blob.core.windows.net/" , accountName ));
15791579 ServiceURL s = new ServiceURL (u ,
15801580 StorageURL .createPipeline (new SharedKeyCredentials (accountName , accountKey ), new PipelineOptions ()));
1581- ContainerURL containerURL = s .createContainerURL ("myjavacontainerlistlazy" );
1581+ ContainerURL containerURL = s .createContainerURL ("myjavacontainerlistlazy" + System . currentTimeMillis () );
15821582
15831583 containerURL .create (null , null , null ).toCompletable ()
15841584 .andThen (Observable .range (0 , 5 ))
@@ -2226,7 +2226,7 @@ Create the blob with string (plain text) content.
22262226 We create a simple flowable for the purposes of demonstration, but the Flowable in question need not
22272227 produce a repeatable sequence of items. A network stream would be a common use for this api.
22282228 */
2229- Flowable <ByteBuffer > nonReplayableFlowable = Flowable .just (ByteBuffer .allocate (0 ));
2229+ Flowable <ByteBuffer > nonReplayableFlowable = Flowable .just (ByteBuffer .allocate (1 ));
22302230 TransferManager .uploadFromNonReplayableFlowable (nonReplayableFlowable , blobURL , 4 * 1024 * 1024 , 2 , null );
22312231 // </tm_nrf>
22322232
0 commit comments