kotlin bytestring to ByteArray code example Example: kotlin string to bytes "my string".toByteArray()