copyFromInputStream

Copies data from input stream