Skip to content

Raw bytes as RequestBody not working anymore in v107 #1761

@inimirpaz

Description

@inimirpaz

Hi everyone,

I used to send a POST API request with raw binary data as follows:

byte[] binaryStream

RestRequest request = new("api/apicall", Method.POST);
request.AddParameter("file", binaryStream, ParameterType.RequestBody);
IRestResponse response = await client.ExecuteAsync(request);

Since I updated and migrated to v107 (107.3.0) this stopped to work. The server receives the ".ToString()" of the bytes array:

--467e3b83-a3ad-4571-8af1-e505c56e0037
Content-Type: text/plain; charset=utf-8
Content-Disposition: form-data; name=file

System.Byte[]
--467e3b83-a3ad-4571-8af1-e505c56e0037--

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions