I programmed to a Webservice-application with VS2015 and C# a testing tool in which i'm adding files to a HTTP request according to this posting from the forum.
Now i had the problem that i wanted to add json files to the request and later reading the content of these posted files.
I'm adding the file to the request by the following call:
RequestHelper.AddFileToRequest(httpRequest, jsonFileName, "json", new byte[] { 1, 2, 3, 4, 5 });
When i read the content of the posted file in the HTTPPost-method which was called by URL with parameters, i get just the given five bytes.
What have i to do, to add the content of the files correctly to the request?