• 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

Uploading Pdf and Zip file using FileUpload

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

How to upload a PDF or ZIP file using <p:fileUpload> in jsf primefaces .
is it possible to upload some other formats.

Regards,
Sriram.G
 
Saloon Keeper
Posts: 27762
196
Android Eclipse IDE Tomcat Server Redhat Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
When you "upload a file" to a web server, what you are actually doing is instructing the client (browser) to open that (client) file and copy what's in it into the data stream that's being posted to the server.

When the server receives the data, it places it in a staging area where the webapp can then consume it and/or copy it into a local file.

The format of the file data, whether text, PDF, doc, XML, or whatever, is not of interest to the webapp server file upload services themselves. Only the web application that consumes the file data has to concern itself with the data format, and it must make its own decisions. Which means that it's the application programmer's job.
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic