SyntaxFix
Write A Post
Hire A Developer
Questions
You can also use REST Assured which builds on HTTP Client. It's very simple:
given().multiPart(new File("/somedir/file.bin")).when().post("/fileUpload");