You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@streampipes.apache.org by GitBox <gi...@apache.org> on 2022/11/26 15:12:06 UTC

[GitHub] [streampipes] dominikriemer opened a new issue, #641: New File API does not work with large files

dominikriemer opened a new issue, #641:
URL: https://github.com/apache/streampipes/issues/641

   When using large files \>1GB (e.g. for an adapter) they can not be loaded by the FileApi.getFileContent(String fileName).  
   
   For example in the FileProtocolUtils the file is loaded in a byte array. There should also be an option to use an InputStream as a return type. 
   
   Therefore my suggestion would be to extend the FileAPI with a new method: getFileContentAsStream(String fileName): InputStream
   
    
   
   How do we need to update the org.apache.streampipes.client.http.HttpResest class?
   
   Currently the request is executed in line 87 via: 
   
   HttpResponse response = request.execute().returnResponse();
   
   The file used to be loaded with this command:
   
   Request.Get(fileFetchUrl).execute().returnContent().asStream();
   
    
   
   Imported from Jira [STREAMPIPES-482](https://issues.apache.org/jira/browse/STREAMPIPES-482). Original Jira may contain additional context.
   Reported by: zehnder.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@streampipes.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [streampipes] dominikriemer closed issue #641: New File API does not work with large files

Posted by GitBox <gi...@apache.org>.
dominikriemer closed issue #641: New File API does not work with large files
URL: https://github.com/apache/streampipes/issues/641


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@streampipes.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org