You are close, but what you have does a lot of String conversions which are slow and only work with character resources. You need to use a plain BufferedInputStream instead of a reader and use res.getOutputStream instead of getWriter. Then read and write bytes until the input stream is exhausted. That will be faster and could serve binary data as well as character data. Bill
Joined: Oct 16, 2002
well i got another way i use sendRedirect method and have another problem now i don't know how i can send parameters (without session) from one servlet to another trying use RequestDispatcher but not work any solves ?