I Am new to jersey/JAX-RS implementation. Please find below my jersey client code to download file:
Client client = Client.create();
WebResource wr = clien
This sample code below may help you.
https://stackoverflow.com/a/32253028/15789
This is a JAX RS rest service, and test client. It reads bytes from a file and uploads the bytes to the REST service. The REST service zips the bytes and sends it back as bytes to the client. The client reads the bytes and saves the zipped file. I had posted this as a response to another thread.