Fixed the issue with corrupt download when file Size more than ~65K.

Using stfp.read() we'll have to manually refill the read buffer once the default buffer size of 64*1024 is read. Instead used streams.