Tech
Forums
Jobs
Books
Events
Live
Interviews
More
Learn
Training
Career
Members
Videos
News
Blogs
Login
Sign Up
Ask Question
0
Reply
To enter pdf and docx file in the database
Ankita Singhwal
May 16 2013 10:00 AM
940
Reply
try
{
oCommonBLL.Extension = Path.GetExtension(FileResume.FileName);
if (oCommonBLL.Extension == ".doc" || oCommonBLL.Extension == ".docx" || oCommonBLL.Extension == ".pdf")
{
int fileSize = FileResume.PostedFile.ContentLength;
byte[] documentBinary = new byte[fileSize];
FileResume.PostedFile.InputStream.Read(documentBinary, 0, fileSize);
oCommonBLL.byResume = documentBinary;
}
}
catch (Exception ex)
{
ErrHandler.WriteError("Class:" + this.ToString() + " Method : " + System.Reflection.MethodBase.GetCurrentMethod().Name + "Error MSG :" + ex.Message);
}
it is not giving correct output
Upload Source Code
Select only zip and rar file.
Post
Reset
Cancel
Answers (
0
)
Next Recommended Forum
code for generating username and password dynamically
Recent Activity - Forums - View All