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 this stream completely into a byte array.
Note: It is the caller's responsibility to close this stream.
Since Kotlin
1.3Reads 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
Warning since 1.3
Error since 1.5
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.