Andrew Gaul commented on JCLOUDS-1367:

Real blobstores stream the blob payload from the server; if you want two 
{{InputStream}} you need to call {{getBlob}} twice.  The testing blobstores 
return a ByteSource which allows multiple streams; we should change this to 
follow real blobstores more closely.

> Blob.getPayload.openStream() is inconsistent across implementations
> -------------------------------------------------------------------
>                 Key: JCLOUDS-1367
>                 URL: https://issues.apache.org/jira/browse/JCLOUDS-1367
>             Project: jclouds
>          Issue Type: Bug
>          Components: jclouds-blobstore
>            Reporter: Rishab Manocha
>            Priority: Minor
> Blob.getPayload.openStream() returns a new InputStream object if the payload 
> is a sub type of  InputStream but returns the same stream if the payload is 
> of type InputStream.
> It would be desirable to have it return a new Stream object which can be read 
> independently.

This message was sent by Atlassian JIRA

Reply via email to