liberator

danielgrosse 2016-10-05T06:01:43.000013Z

I don't want to redirect. I build an API where I create an endpoint like /image/w/h/id1/id2and this returns an image with the width and the height. Depending on the requested image, it may be already present on the server or needs to be generated.

ordnungswidrig 2016-10-05T08:04:55.000014Z

@danielgrosse Oh, I read „image location“ as url location. To return an image you’d need to specify the correct media-type in :available-media-types, say image/png and return a java.io.File or a bytearray from the hander.