kotlin-stdlib / kotlin.io / java.net.URL / readBytes readBytes JVM 1.0 fun URL.readBytes(): ByteArray Reads the entire content of the URL as byte array. This method is not recommended on huge files. Return a byte array with this URL entire content.