The secret of how to be miserable is to constantly expect things are going to happen the way that they are "supposed" to happen.
You can have faith, which carries the understanding that you may be disappointed. Then there's being a willfully-blind idiot, which virtually guarantees it.
serve the file from whatever outside folder you store the file in.
sam wootton wrote:
So a temporary file under e.g.
would be okay?
... thats the bit I cant work out how to do.
sam wootton wrote:
Many thanks for your continued help. Where should this separate folder sit? Does it have to be completely outside of my webapp i.e.
C:\Users\Sam\apache-tomcat-7.0.62\my_downloads\
What's the best way to retrieve or reference this path from within my webapp?
My client (gwt client) has to make a GET request (as you can't stream from gwt), so I need a URL that can be hit directly.
Or are you suggesting my client sends back unique id
but im unsure how to generate a URL that maps to C:\Users\Sam\apache-tomcat-7.0.62\my_downloads\
The secret of how to be miserable is to constantly expect things are going to happen the way that they are "supposed" to happen.
You can have faith, which carries the understanding that you may be disappointed. Then there's being a willfully-blind idiot, which virtually guarantees it.
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime. |