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
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
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: pdf byte to pdf file converstion
 
Similar Threads
Display Pdf Content
wrting bytearray to xml file
Using Thumbnail PDFs
PDF Files
create pdf command line