日期:2014-05-18 浏览次数:20768 次
File uploadFile = new File(dir, fileName); OutputStream out = new FileOutputStream(uploadFile); byte[] buffer = new byte[1024 * 1024]; int length; while ((length = in.read(buffer)) > 0) { out.write(buffer, 0, length); }