This week's book giveaway is in the Design forum.
We're giving away four copies of Building Microservices and have Sam Newman on-line!
See this thread for details.
The moose likes Java in General and the fly likes pdf byte to pdf file converstion Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Building Microservices this week in the Design forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "pdf byte to pdf file converstion" Watch "pdf byte to pdf file converstion" New topic
Author

pdf byte to pdf file converstion

sivaprasad pasupulathi
Ranch Hand

Joined: Apr 21, 2009
Posts: 36
Hi,

I have pdf bytes[].I would like to use these bytes and create the pdf.I would like to store the generated pdf in local.I am not using any servlets for this process.Please let me know how we can create a pdf file with pdf bytes.

Thanks
siva
sivaprasad pasupulathi
Ranch Hand

Joined: Apr 21, 2009
Posts: 36
This worked,hope this helps:

File someFile = new File(somefile);
FileOutputStream fos;
fos = new FileOutputStream(someFile);
fos.write(pdfBytes);
fos.flush();
fos.close();

Thanks
siva
 
Have you checked out Aspose?
 
subject: pdf byte to pdf file converstion
 
It's not a secret anymore!