Function copy_to_stream
Copy the contents of a stream into another stream until the given number of bytes have been read.
|
$source |
Stream to read from |
|
$dest |
Stream to write to |
integer |
$maxLen = -1 |
<p>Maximum number of bytes to read. Pass -1 to read the entire stream.</p> |
RuntimeException
|
on error. |