I'm trying to read an excel file from the input Stream.
I want to read line by line and save the column information from Excel to Database.
I'm unable to read the file, Can any one help me to figure out what Im missing.
Here is the code below.
using (System.IO.BinaryReader sr = new System.IO.BinaryReader(fileToUpload.PostedFile.InputStream))
{
do
{
tester.Text = tester.Text + sr.ReadString() + "</br>";
} while (sr.PeekChar() > 0);
}
Thanks karthik