-
-
Notifications
You must be signed in to change notification settings - Fork 2.3k
Closed
Labels
Description
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=fileSystem.Byte[]
--467e3b83-a3ad-4571-8af1-e505c56e0037--
HossamElwahsh