[ 
https://issues.apache.org/jira/browse/STREAMPIPES-482?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17459525#comment-17459525
 ] 

ASF subversion and git services commented on STREAMPIPES-482:
-------------------------------------------------------------

Commit 0420e4f8977fb4df5c90d8b6568574172336b1de in incubator-streampipes's 
branch refs/heads/dev from Dominik Riemer
[ https://gitbox.apache.org/repos/asf?p=incubator-streampipes.git;h=0420e4f ]

Merge pull request #67 from apache/STREAMPIPES-482

Streampipes 482

> New File API does not work with large files
> -------------------------------------------
>
>                 Key: STREAMPIPES-482
>                 URL: https://issues.apache.org/jira/browse/STREAMPIPES-482
>             Project: StreamPipes
>          Issue Type: Bug
>            Reporter: Philipp Zehnder
>            Priority: Major
>              Labels: pull-request-available
>
> 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();
>  



--
This message was sent by Atlassian Jira
(v8.20.1#820001)

Reply via email to