在使用完输出流以后调用以下两行代码即可:
out.clear();
out = pageContext.pushBody();
如输出图片
<%
JbpmContext jbpmContext= JbpmConfiguration.getInstance().createJbpmContext();
ProcessDefinition pd = jbpmContext.getGraphSession().findLatestProcessDefinition("abl");
FileDefinition fd = pd.getFileDefinition();
byte[] bytes = fd.getBytes("processimage.jpg");
response.setContentType("image/jpeg");
response.getOutputStream().write(bytes);
out.clear();
out = pageContext.pushBody();
%>