Thanks guys, yeah I was hoping to be able to use a uchar array but couldn't get it to work. Also wanted to avoid setting the argument size permanently for the program as well.

At the moment I'm breaking the string into 65,000 byte chunks, to a maximum of 6. Then passing 6 variables from JS back to the dataflex class. Hopefully it won't be bigger. This allows us to only change the argument size temporarily.

Cheers
Tom

Sent from my SM-G930F using Tapatalk