<% try { if (request.getContentLength()>297){ InputStreamin=request.getInputStream(); Filef= new File("d:/temp", "test.txt"); FileOutputStreamo= new FileOutputStream(f); byte b[]= new byte[1024];
7、 int n; while ((n=in.read(b))!=-1){ o.write(b,0,n); } o.close(); in.close(); out.print("Fileuploadsuccess!"); } else { out.print("Nofile!"); } } catch (IOExceptione){