playframework 2.0 - Serving dynamic content in Play 2.x -


on level, i'm doing similar post: how serve dynamic content in playframework 2

which have web app clients can specify various parameters , have play! server initiate process generates custom image file...which needs served client, preferably play!

anticipated image life expectancy anywhere several seconds several minutes (maybe hours). angle, have reasons believe attempting send image data directly response not viable approach...and instead going send url dynamic image.

i prefer not rely on separate http server being set serve these dynamic images variety of reasons. believe reasons many, including not limited to... maintaining simpler architecture both developer work environments production servers. have small/restricted user base few concurrent users (i don't believe serving these images needs terribly high performance anyway - assuming play! can serve these dynamic images, find hard imagine performance wouldn't acceptable considering simplicity tradeoff).

i've read play! assets in public/ folder compiled .jar file build/compile time seems explain why tests of dynamic image generation , serving don't work expected - results served previous build.

can suggest way of serving dynamic assets without relying on server?

regardless of whether idea, there no real problem play! serving assets in public/ folder.

the thing can cause appear not work assets existing in public/ folder when app gets compiled compiled .jar file. if write new file name/path matches 1 compiled .jar file, compiled file served back, not new file. if file not exist in .jar, served fine.

this may not terribly idea think acceptable solution attempting do.


Comments

Popular posts from this blog

jquery - How can I dynamically add a browser tab? -

node.js - Getting the socket id,user id pair of a logged in user(s) -

keyboard - C++ GetAsyncKeyState alternative -