9
Hi I'd like to read a PNG from a web service and then respond back to the client with the PNG. (think something like an image proxy). I am using Java and the Play Framework 2.0 with the WS class.
Currently I have:
public static Result getimage(){
WSRequestHolder requestHolder = WS.url("http://someimageserver/myimage.png");
Promise<WS.Response> getImageResult = requestHolder.get();
//How do I create an play.mvc.Result from this so I can sent it back to the callee?
}
Any help is much appreciated.