我需要返回一个区域的主体和流响应。
我想更新一个区域并返回一个文件。
java中的事件将是这样的:
Object[] onActionFromGenerar() throws InstanceNotFoundException{
/**
* Code
*
*/
try(InputStream input = new ByteArrayInputStream(cuaderno.getFichero())){
return new Object[] {new AttachmentStreamResponse(input,"Transferencias"), tableZone.getBody()};
}catch (IOException x){
System.err.format("IOException: %s%n", x);
return new Object[] { Index.class } ;
}
}
但返回错误。只能返回 tableZone.getBody();
我能怎么做?