writeToStream doesn't get the whole file's size
Posted: Mon Nov 19, 2018 11:20 am
Hi,
I'm working on a project and have to download a file from a link and save it to Buffer.
I have read a lot about it and I think the answer is to use http.writeToStrem().
So I'm trying it, but there's a problem... It doesn't get the whole file's size. my file is 988.211bytes, but it gets about 150.000bytes.
I tried another files and links, but It treats them same.
So I want to ask you, maybe you can help... I'll be very thankful!
I'm working on a project and have to download a file from a link and save it to Buffer.
I have read a lot about it and I think the answer is to use http.writeToStrem().
So I'm trying it, but there's a problem... It doesn't get the whole file's size. my file is 988.211bytes, but it gets about 150.000bytes.
I tried another files and links, but It treats them same.
So I want to ask you, maybe you can help... I'll be very thankful!