Click here to Skip to main content
16,004,906 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Hi Guys,

how do i convert a pdf file to biary format for storage?
im currently using the code below but not sure if this is best practice or method.
File1 content is a file upload component that use to browse a file.

HTML
Dim msg As String = ""

                    Dim readBinary As New BinaryReader(File1.FileContent)
                    msg = readBinary.ReadString()
                    readBinary.Dispose()


thanks
Anoop
Posted

1 solution

All files are binary, even text files. There is nothing to "convert".

—SA
 
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