The SetResponseSample package shows how a service can return the contents of a file to any HTTP client. I’ve posted similar code in the forums to do the same. This is a very useful capability.
The one downside to both the sample package and the source I’ve used in the past is that it requires the data to be completely loaded into memory, which for large files is a bad idea.
I’m hoping someone knows of a technique that can be used to return large files. A “setResponseStream” if you will.
I’ve a used custom content handler in the past to provide this sort of capability but I’m hoping a less-intrusive approach is available. Plus, I cannot seem to locate the code that I used to do that so I need a new approach in any case.