New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Lower memory consumption: SpringSingleMultipartFileWriter #88
Comments
Facing the same issue with transferring uploaded files through Feign-equipped applications. It would be much more efficient for memory consumption if Feign could treat uploaded files as byte streams rather than byte arrays. |
Same issue here. Any chance it will be fixed soon? |
Looks like the support for large file isn't there. I'm facing a similar issue with pure OpenFeign described here #101 |
Yes. I've written a new client based on RestTemplate from Spring Framwork and was able to stream file content without copying it into a memory. Now I have two clients one for doing uploads and one for other operations (feign). |
Thanks @koziolk for the fast response. I was thinking to do the same approach and have two clients for the short term. |
The
write
method ofSpringSingleMultipartFileWriter.java
uses a lot of memory:Is it possible to use
file.getInputStream()
in some kind of way? It will require a lot of refactoring... now large files are loaded inside the memory twice.The text was updated successfully, but these errors were encountered: