Click here to Skip to main content
16,016,693 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Dear Sir

I want to convert a PDF file into Byte and save in a database. when user need to call this file then this will convert into PDF again and visible to user as PDF page.
It's Urgent

Thanks in advance
Posted
Comments
Richard MacCutchan 25-Jun-15 4:53am    
A PDF file is already bytes, as is every file. And, no, it is not urgent.

1 solution

You can use :
C#
var bytes = File.ReadAllBytes("filename.pdf");
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900