简体   繁体   中英

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.

发布Base64编码的二进制数据字符串并对其进行解码。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM