Hello,

 imagine this case:

  - I have a class named  FileInfo which has as instance variables: pdf file name, contents, size....

   - in a jsp file, I declare an object of type FileInfo which is filled with a specific pdf file. I want to to display the contents of that file in Acrobat Reader (when a user clicks a specific link in another jsp page).

  I followed these steps:   

      response.setContentType("application/pdf");

     response.setHeader("Content-Disposition","attachment;filename=\"fileName.pdf\"");

The problem raises in the last line.... I don't have actualy the file in the database, so I can download it with jspSmartUpload... it is in the object FileInfo...

Any hints?

Thanks in advance.

 

Reply via email to