syntax of cob=vert string tobyte in java code example Example: String by byte array in java String str = "Example String"; byte[] b = str.getBytes();