{
if (parameters.length > 0) {
try {
for (int i=0; i<parameters.length; i++) {
Any param = parameters[i];
if (param.isBinary()) {
update(param.toBinary(), 0, param.sizeOf());
} else if (param instanceof AnyFile) {
update(context, (File)param.toObject());
} else if (param instanceof AnyURL) {
update((URL)param.toObject());
} else {
byte[] bytes = anvil.util.Conversions.getBytes(param.toString());
update(bytes, 0, bytes.length);
}
}
} catch (IOException e) {
throw context.exception(e);