getRequestDispatcher('/downloads/ pdf') forward(request, response); or if you can configure your view resolver something like, then just return return 'RANDOM-FILENAME'.. pdf from the code and send a forward to this file using HttpServletRequest request.. File#length() should be good enough in the general case I just mentioned it because, specially if the file is in a remote system or something more elaborated like that - a database, maybe? But only worry if it becomes a problem (or if you have hard evidence it will become one), not before. Download ebook - Home,Programming-Java, pdf About the file length calculation part: If you are worried, don't be.. What I can quickly think of is, generate the pdf and store it in webapp/downloads/.. Download free ebook: Getting started with Spring Framework English; 2014; ISBN:; 522 Pages; EPUB.. The main point is: you are making an effort to stream the file, if you have to preload all of it before, then the streaming ends up making no difference, eh? – May 13 '15 at 15:21 •. تنزيل قوقل كروم عربي 2019 برنامج Google Chrome
e828bfe731
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |