sahaya / rest-assured

Automatically exported from code.google.com/p/rest-assured
0 stars 0 forks source link

Should add overloaded multiPart method that accepts InputStream or byte[] instead of File or String #191

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
There should be a variant of the multiPart method that allows to specify the 
data as byte[] or as InputStream. One usecase if is the binary file to be 
uploaded is present in the resource fork.

Original issue reported on code.google.com by m...@farewellutopia.com on 22 Aug 2012 at 7:08

GoogleCodeExporter commented 9 years ago
There already is support for byte[] and inputstreams as overloaded methods. See 
https://github.com/jayway/rest-assured/blob/master/examples/rest-assured-itest-j
ava/src/test/java/com/jayway/restassured/itest/java/MultiPartUploadITest.java .

Original comment by johan.ha...@gmail.com on 23 Aug 2012 at 5:39

GoogleCodeExporter commented 9 years ago
Ok, thanks. Now found the javadoc 
(http://rest-assured.googlecode.com/svn/tags/1.6.2/apidocs/com/jayway/restassure
d/specification/RequestSpecification.html). Found no way to get rid of the 
fileName attribute but this is a minor thing. Now I'm looking for a way to add 
a content-Language header to the section.

Original comment by m...@farewellutopia.com on 23 Aug 2012 at 6:44

GoogleCodeExporter commented 9 years ago
Please use the mailing-list for asking questions.

Original comment by johan.ha...@gmail.com on 23 Aug 2012 at 7:06