• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Downloading multiple files in one request

 
Ranch Hand
Posts: 426
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi All,

I have a jsp where it displays a list of files to the user in a form of List Box. User will click multiple entries in the List Box where each entry corresponds to one File.

All my files are save into the database as BLOB files. Upon extracting the list of files that the user wants to download, I will look up at my database and get all the files then convert the BLOB files to proper format then forward it to the user.

But I am wondering if its possible in this way? I have looked in the net and found some good examples of file download but it contains only one file. Need some advice on this one or should i just abandon my thought.

Is it possible to download multiple files all in one request and save it all in the local directory of the users.? Thanks
 
Marshal
Posts: 28226
95
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
The reason you can only find examples that download one file is: you can only download one file. Nothing to do with Struts, that's just how HTTP works.

You could zip all the user's selections into a single zip archive and download that, but the user might not thank you for that.
 
Mark Reyes
Ranch Hand
Posts: 426
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Paul,

I did thought of zipping the file before downloading it to the client but as you have said, user might not thank me for that. Thanks for the help.
 
reply
    Bookmark Topic Watch Topic
  • New Topic