I am reading pdf file into array of bytes using BinaryReader..as
byte[] filecontent ;
BinaryReader binReader = new BinaryReader(File.Open(FileName, FileMode.Open, FileAccess.Read));
binReader.BaseStream.Position = 0;
filecontent = binReader.ReadBytes(Convert.ToInt32(binReader.BaseStream.Length));
binReader.Close();
Is there any alternate way to this, faster and reliable ?