Fork me on GitHub
#liberator
<
2016-10-05
>
danielgrosse06:10:43

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.

ordnungswidrig08:10:55

@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.