I am trying to send byte [] (using PUT) using Restlet, but I cannot find information on how to do this. My code is as follows:
Request request = new Request(Method.PUT, url); request.setEntity( WHAT DO I PUT HERE?, MediaType.APPLICATION_OCTET_STREAM);
I was expecting to find something by ByteArrayRepresentation strings, just like JsonRepresentation and StringRepresentation, but I couldn't find anything.
Yrlec
source share