How can I resolve this type of error?
Caused by: sun.org.mozilla.javascript.internal.EvaluatorException: The choice of Java constructor write matching JavaScript argument types ([B) is ambiguous; candidate constructors are:
void write(int)
void write(byte[]) (<Unknown Source>#28)