java - BPM - byte array - not expected -


i've got problem when trying compress .xls file zip file in bpm platform (bea aqualogic bpm - studio). code far:

try { fileoutputstream fos = fileoutputstream(arg1 : "/home/and/reportes/ziptest.zip"); zipoutputstream zos = zipoutputstream(arg1 : fos);  logmessage("mas - zippeo en: " + url);  java.io.file file = java.file(arg1 : url); fileinputstream fis = fileinputstream(arg1 : file); zipentry entry = zipentry(arg1 : url); zos.putnextentry(arg1 : entry);  int buff = 1024; byte[] buffer = new byte[buff];  int length; //int buffer = 1024;  while((length = fis.read(buffer,0,1024)) >= 0){     zos.write(arg1 : buffer, arg2 : 0, arg3 : length); } } catch (filenotfoundexception e) { logmessage("mas - fnfe: " + e.stacktrace); } catch (ioexception e) { logmessage("mas - ioe: " + e.stacktrace); } 

what i'm getting, compiling error:

''byte'' not expected

and simple quotation marks btw (as in ' ')

any idea or how solve it?

thanks in advance

edit: also, i'm getting error:

argument not valid 'arg1'. type 'byte array' not compatible 'binary'

in "fis.read" and"zos.write"


Comments

Popular posts from this blog

android - Gradle sync Error:Configuration with name 'default' not found -

java - Andrioid studio start fail: Fatal error initializing 'null' -

html - jQuery UI Sortable - Remove placeholder after item is dropped -