kamaci
kamaci

Reputation: 75147

How to Consume Binary Data at Jersey?

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

Answers (1)

Naveen Ramawat
Naveen Ramawat

Reputation: 1445

Post Base64 encoded string of binary data and decode that and another side.

Upvotes: 1

Related Questions