-
Notifications
You must be signed in to change notification settings - Fork 92
Closed
Description
I'm trying to implement a 'download' remote method that will pipe a stream into http response. For example,
function download(..., cb) {
var in = fs.createReadStream('1.jpg', ...);
in.pipe(res);
}
There are a few options:
- Have the download function to callback with a ReadStream so that strong-remoting will pipe it into the response.
- Invent a way to declare req/res parameters so that strong-remoting can inject them for the method invocation.
- Make HTTP context accessible by calling Context.getCurrent().
Reactions are currently unavailable