I am stuck on an obvious one:
How to render an image from a controller using Play 2.0 ?
With play 1.0 there was a renderBinary()
method. It is now gone.
Play-RC1 only defined 3 content types: Txt, Html and Xml....
Therefore, how to serve a binary from the controller?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…