Hi to all, this is my first post in this forum and I hope you will help my.

Client side, I want to make an HTTP request: the result will be that the client receive an image to display.

Here I have problems: I have created a method that take as arguments 2 instances, whose class are:

MockHttpServletRequest request

MockHttpServletResponse response

The MockHttpServletResponse object must contains the image that the client must receive.

So I have an object, which class is Image, and I have to "insert" this element in the response object.

How I will do this?

The response object have a Header (that contains name-value couples) and the body. Will I insert the image in the body?

Thank you!!!