httpbuilder icon indicating copy to clipboard operation
httpbuilder copied to clipboard

Cannot POST Byte[] as a application/octet-stream

Open kuceram opened this issue 10 years ago • 0 comments

Throws exception: java.lang.IllegalArgumentException: Don't know how to encode [Ljava.lang.Byte;@165d86f1 as a byte stream

The problem is using Byte[] instead of byte[]

https://github.com/jgritman/httpbuilder/blob/master/src/main/java/groovyx/net/http/EncoderRegistry.java#L130

kuceram avatar Jun 20 '14 11:06 kuceram