public void downVoice(HttpServletRequest request,HttpServletResponse response,String voiceUrl) throws Exception {
int i = voiceUrl.lastIndexOf("/");
String fileName =voiceUrl.substring(i + 1);
HttpURLConnection httpconn = null;
URL url = null;
url = new URL(voiceUrl);
httpconn = (HttpURLConnection) url.openConnection();
httpconn.connect();
InputStream in= httpconn.getInputStream();
renderDownload(request, response, fileName, in);
}
public void renderDownload(HttpServletRequest request, HttpServletResponse response, final String fileName,
InputStream in) throws IOException {
String int BUFFER_SIZE = 4096
String mimetype = "application/octet-stream";
String encodeName = fileName;
String ua = request.getHeader("User-