Friends,
Is it possible to send attachments (binary content) to a RESTful WS, as we do to SOAP based WS ? How do we handle it in the REST WS ? I intend to work with Java APIs.
HTTP is quite capable of sending and receiving binary media types. For a pure binary stream of bytes, just POST or PUT a body of bytes using the media type application/octet-stream
.
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.