writeToStream doesn't get the whole file's size

miladgh
Posts: 10
Joined: Thu Oct 04, 2018 9:19 am

writeToStream doesn't get the whole file's size

Postby miladgh » 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!

miladgh
Posts: 10
Joined: Thu Oct 04, 2018 9:19 am

Re: writeToStream doesn't get the whole file's size

Postby miladgh » Fri Nov 23, 2018 10:46 am

any ideas? :/

Who is online

Users browsing this forum: AdsBot [Google] and 56 guests