Skip to content

How to up/download huge files with Feign? #1243

Open
@dibog

Description

@dibog

I have to up/download huge files, bigger then fits into memory.
For the download I could use the Response object as it gives me the
(hopefully) unbuffered input stream. But how could I send big data
within a request.

I would like to avoid multipart files or similar. I would like to push the
binary data direct behind the request object.

Ideally, I would like to be able to stream data from a response object to a request object without
the need to write it into the file system.

Currently, I got stuck with the upload part. The encoder expects that I write the data either as string or byte[]
into the RequestTemplate. Is there no way to attach there an output stream?

Thanks,
Dieter

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementFor recommending new capabilitiesfeedback providedFeedback has been provided to the authorfeign-12Issues that are related to the next major release

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions