Skip to content

[REQ] [Java] [native] Support useAbstractionForFiles for this library as well #8549

@MosheElisha

Description

@MosheElisha

Is your feature request related to a problem? Please describe.

I would like to be able to send and receive an InputStream instead of a File when uploading/downloading.

Describe the solution you'd like

Support the useAbstractionForFile config option for the native library for uploading files (similar to "resttemplate").

Describe alternatives you've considered

Create a custom template but this is a very common and frequently requested feature.

Additional context

  1. Consider adding support of useAbstractionForFile config option in OkHttp library as well (as requested in [BUG] Java client (OkHttp) uses java.io.File for file parameters, instead of an InputStream #7941 ).
  2. Extend the functionality and return an InputStream when downloading files, not only when uploading files (for all supported libraries) As requested in the comments of Java/RestTemplate - Allow flexible options in generated client when a file is needed #6715 .

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions