How can I send file in Feign as byte array?
@RequestLine("POST /api/files/{num}/push")
@Headers({"Content-Type: application/zip"})
void pushFile(@Param("num") String num, @Param("file") byte[] file);
This is not working and passing the data in form of json with top element named file. What can I do to properly receive array of bytes on the other side using this controller method parameter annotation?
@RequestBody byte[] file