Skip to content
This repository was archived by the owner on Jan 14, 2018. It is now read-only.

Download a file with query params #468

@jclemus91

Description

@jclemus91

Hello,

I am looking for a way to download a file from server, I see two options, one of them is to use: BinaryRequest but it works only if you pass the total path of the file, for example: "https://www.ietf.org/rfc/rfc2616.txt", and I need to send parameters to the server in this way: api/SomeServiceTranslationFile?Language=en", in that request I send the parameter "en" and RS responds with a Java.io.FileNotFoundException: .

The other way is to make use of RetrofitSpiceRequest <InputStream, MyInterface> , here I send my parameters like any other request, however, the response is treated to be parsed by GSON
An exception occurred during request network execution :Failed to invoke public java.io.InputStream() with no args retrofit.RetrofitError: Failed to invoke public java.io.InputStream() with no args

Have any suggestions?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions