TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Ankita Singhwal
NA
1
1.2k
To enter pdf and docx file in the database
May 16 2013 10:00 AM
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
Reply
Answers (
0
)
Size Reduced for Images in PDF & Improved Images to PDF Con.
How can i edit my post?