readBytes
Gets the entire content of this file as a byte array.
This method is not recommended on huge files. It has an internal limitation of 2 GB byte array size.
Since Kotlin
1.0Return
the entire content of this file as a byte array.
Reads the entire content of the URL as byte array.
This method is not recommended on huge files.
Since Kotlin
1.0Return
a byte array with this URL entire content.
Deprecated
Use readBytes() overload without estimatedSize parameter
Replace with
readBytes()
Content copied to clipboard
Reads this stream completely into a byte array.
Note: It is the caller's responsibility to close this stream.