title: swf sending servlet doesn't work on IE
body: <p>im trying to render the swf on jsp page
  i can show local files "waf.swf" but whenever i use the servlet address it fails on IE but works on firefox</p>
  
  <p>this is the servlet code</p>
  
  <pre><code>ServletOutputStream out = response.getOutputStream();
  response.setContentType("application/x-shockwave-flash");
  response.setContentLength(length);
  response.setHeader("Content-Disposition", "filename=\"" + file.getName() + "\"" );
  response.setHeader("cache-control", "no-cache");
  byte[] bbuf = new byte[1024];
  DataInputStream in = new DataInputStream(new FileInputStream(file));
  
  while ((in != null) &amp;&amp; ((length = in.read(bbuf)) != -1))
    out.write(bbuf,0,length);
  
  in.close();
  out.flush();
  out.close();
  </code></pre>