imageShow.jsp 552 B

12345678910111213
  1. <%@ page language="java" contentType="text/html; charset=utf-8"
  2. pageEncoding="utf-8"%>
  3. <%@page import="com.hotent.core.util.FileUtil"%>
  4. <%@page import="com.hotent.core.api.util.PropertyUtil"%>
  5. <%@page import="java.io.*"%>
  6. <%
  7. String path = request.getParameter("path");
  8. String filePath = PropertyUtil.getByAlias("file.upload")+File.separator+ path.replace("/", File.separator);
  9. byte[] bytes = FileUtil.readByte(filePath);
  10. response.getOutputStream().write(bytes);
  11. response.getOutputStream().flush();
  12. response.getOutputStream().close();
  13. %>