public void downLoad(HttpServletRequest request,
HttpServletResponse response) throws ServletException, IOException {
response.setContentType("audio/wav");
File file = new File(path);
String filename = file.getName();
String encodeString = null;
try {
filename = new String(filename.getBytes(response.getCharacterEncoding()), request.getCharacterEncoding());
encodeString = URLEncoder.encode(filename, "utf-8");
} catch (Exception e) {
logger.error(e, e);
}
response.setHeader("Content-dihttp://www.zhihu.com/people/cpjay
public void downLoad(HttpServletRequest request,
HttpServletResponse response) throws ServletException, IOException {
response.setContentType("audio/wav");
File file = new File(path);
String filename = file.getName();
String encodeString = null;
try {
filename = new String(filename.getBytes(response.getCharacterEncoding()), request.getCharacterEncoding());
encodeString = URLEncoder.encode(filename, "utf-8");
} catch (Exception e) {
logger.error(e, e);
}
response.setHeader("Content-dihttp://www.zhihu.com/people/cpjay