aspose file tools*
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 Java 8 in Action this week in the Java 8 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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: pdf byte to pdf file converstion
 
Similar Threads
Using Thumbnail PDFs
Display Pdf Content
PDF Files
wrting bytearray to xml file
create pdf command line