Reputation: 75147
How can I write a controller to consume that at Jersey?
curl 'http://localhost:1111/alo/update/mi?ret=true' --data-binary @books.json -H 'Content-type:application/javabin'
I want to retrieve both the value of ret parameter and books.json as binary?
PS: javabin is a custom binary format.
Upvotes: 1
Views: 268
Reputation: 1445
Post Base64 encoded string of binary data and decode that and another side.
Upvotes: 1