node.js - Streaming vs linking static files -


i'm looking advantages of streaming on linking static files, eg images, pdf.

to make question more clear, using node can stream files using

fs.createreadstream 

i can understand streaming videos etc why should stream static files. can provide href?

if static files available on url there's no need stream them using node. if node app wants return contents of static file hosted , served somewhere instead of streaming contents can return redirect file's url.


Comments

Popular posts from this blog

ios - Pass NSDictionary from Javascript to Objective-c in JavascriptCore -

java - How to handle special characters while unmarshalling xml in JAXB -

tensorflow when input_data MNIST_data , zlib.error: Error -3 while decompressing: invalid block type -