title: Upload Very Large File to Swift Container
body: <p>I'm using jclouds java SDK to upload to Swift Container i saw the code in which i upload as a multipart,i already upload as a multipart as input stream using the code</p>
  
  <pre><code>    try (ByteArrayInputStream inputStream = new ByteArrayInputStream(bytes)) {
                      ///input here is InputStream not ByteSource
                      Payload payload = Payloads.newInputStreamPayload(inputStream);
                      Blob blob = blobStore.blobBuilder(path).payload(payload).build();
                      ///sednig the request
                      blobStore.putBlob(ContainerName, blob, multipart());
                      System.out.println(String.format("End upload all Parts, parts number=%s, part size=%s", strPartsCount, strPartSize));  
  }
  </code></pre>
  
  <p>but i have a case where i have a very large file, the input to it is a bytes matrix, the solution is very easy which is put the same code in a <code>for loop</code> and each loop the input is an index of the matrix (which is a byte array)</p>
  
  <p>but the question is, would the OpenStack consider each loop (multipart upload) is linked to the previous part? how to do that?
  you can say a multipart inside a multipart</p>
  
  <p>Thanks</p>