-
I am trying pipe a stream with an image url to ctx.res. Image from urlThis is a simple version with image url using nodejs
I wonder how should I get it done using Koa to serve the images. Any help is appreciated. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
A quick update to the question.
So it is not necessary to pipe for Koa, Koa will handle it.
|
Beta Was this translation helpful? Give feedback.
A quick update to the question.
I found the follow works without piping it.
Because in the source code of koa
application.js
it is
So it is not necessary to pipe for Koa, Koa will handle it.
And thus
But then I found another problem.If the stream originally controlled by authenticated source. This is not working.
I will continue to study. If any one knows could share their insight. Much thanks.