byte[] image = new byte[10];
for (int i = 0; i < 10; i++) {
image[i] = (byte)(i + 1);
}
ByteArrayInputStream inputStream = new ByteArrayInputStream(image);
<BUG>from("restlet:http://0.0.0.0:" + portNum + "/images/{symbol}?restletMethods=get")
</BUG>
.setBody().constant(new InputRepresentation(inputStream, MediaType.IMAGE_PNG, 10));
<BUG>from("restlet:http://0.0.0.0:" + portNum + "/gzip/data?restletMethods=get")
</BUG>
.setBody().constant(new EncodeRepresentation(Encoding.GZIP, new StringRepresentation("Hello World!", MediaType.TEXT_XML)));

byte[] image = new byte[10];
for (int i = 0; i < 10; i++) {
image[i] = (byte)(i + 1);
}
ByteArrayInputStream inputStream = new ByteArrayInputStream(image);
from("restlet:http://localhost:" + portNum + "/images/{symbol}?restletMethods=get")
.setBody().constant(new InputRepresentation(inputStream, MediaType.IMAGE_PNG, 10));
from("restlet:http://localhost:" + portNum + "/gzip/data?restletMethods=get")
