Author : HASSAN MD TAREQ

What is stream?

A stream is an abstraction of “sequence of bytes” (such as file, input/output device, network traffic etc.)

Advantage of stream

  • Better for memory usage
  • Better for performance

Parsing API response without stream

Parsing API response without stream

Parsing API response with stream

Parsing API response with stream