This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes JSF and the fly likes Uploading Pdf and Zip file using FileUpload Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » JSF
Bookmark "Uploading Pdf and Zip file using FileUpload" Watch "Uploading Pdf and Zip file using FileUpload" New topic
Author

Uploading Pdf and Zip file using FileUpload

sriram Ganapathi
Greenhorn

Joined: Dec 19, 2012
Posts: 10
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
Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 15951
    
  19

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.


Customer surveys are for companies who didn't pay proper attention to begin with.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Uploading Pdf and Zip file using FileUpload
 
Similar Threads
Upload and Download files just like attachments in JSP
Folder Upload in Java
web.xml couldn't detect taglib tag anymore?
UnZip the FormFile
how to select a folder.???? to select a file input type "file" what for folder