I am trying to convert a string into a byte array so it can be passed into function to compress the string. Is there anyway to accomplish this.