Reading and writing binary large objects using Jersey APIs
When you work on enterprise-grade business applications, often you may want to build RESTful web APIs for reading and writing large binary objects such as images, documents, and various types of media files. Unfortunately, the JAX-RS API does not have standardized APIs for dealing with large binary files. In this section, we will see offerings from the Jersey framework to store and retrieve images files. These APIs are generic in nature and can be used with any large binary file.
Building RESTful web service for storing images
Let us build a REST API to store the image sent by the client. We will start with the client and then move on to the server-side implementation.
This example uses an ...
Get RESTful Java Web Services - Second Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.