fixed constructor by adding streamDesc.getContentLenght()
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/Common/storagehub-client-wrapper@182012 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
parent
2410fc6911
commit
d67394a210
|
@ -473,7 +473,7 @@ public class StorageHubClientService {
|
|||
}else{
|
||||
streamDesc = shcClient.open(itemId).asFile().download(nodeIdsToExclude);
|
||||
}
|
||||
return new StreamDescriptor(streamDesc.getStream(), streamDesc.getFileName(), streamDesc.getContentType());
|
||||
return new StreamDescriptor(streamDesc.getStream(), streamDesc.getFileName(), streamDesc.getContentType(), streamDesc.getContentLenght());
|
||||
|
||||
}
|
||||
|
||||
|
@ -490,7 +490,7 @@ public class StorageHubClientService {
|
|||
|
||||
setContextProviders(scope, authorizationToken);
|
||||
StreamDescriptor streamDesc = shcClient.open(folderId).asFolder().download(nodeIdsToExclude);
|
||||
return new StreamDescriptor(streamDesc.getStream(), streamDesc.getFileName(), streamDesc.getContentType());
|
||||
return new StreamDescriptor(streamDesc.getStream(), streamDesc.getFileName(), streamDesc.getContentType(), streamDesc.getContentLenght());
|
||||
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue