Unable to use FileStream.writeBytes() method

Unable to use FileStream.writeBytes() method

BY 12 Jun 2014 Web Application Development

I have been trying for half a day to write binary data to a file using the FileStream.writeBytes() method. According to the documentation, it should accept an argument like this:

writeBytes(octet[] byteData)

But, as far as I know, Javascript does not have a data type “octet[]”. I tried using a normal array and also things like ArrayBuffer, but everytime I get a message in the console:

TypeMismatchError: Type mismatch error

Please advise.

Kind regards,

Rob

Written by