{"hidden":false,"children":[{"configs":{"serverScript":"var base64Is, dataIs = new java.io.ByteArrayInputStream(app.get('data').substring(22).getBytes());\nbase64Is = javax.mail.internet.MimeUtility.decode(dataIs, 'base64');\ntry {\n  response.setHeader(\"content-type\", \"application/force-download\");\n  response.setHeader(\"content-disposition\", \"attachment;\" + WebUtil.encodeFilename(request, app.get('file') || 'data.bin'));\n  org.apache.commons.io.IOUtils.copy(base64Is, response.getOutputStream());\n} finally {\n  base64Is.close();\n}","itemId":"module"},"expanded":false,"children":[],"type":"module"}],"roles":{"default":1,"basic":1,"demo":1},"title":"Base64转文件","iconCls":"","inframe":false,"pageLink":""}