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
sathish v
NA
323
2k
i had a problem in reading pdf from external server .
May 15 2018 3:25 AM
i had changed Server mappath to Resolveurl on string FilePath , it works but it takes too much time too load ,(approximatly 4min to load),why its happning,See below
//string FilePath = Server.MapPath("sa.pdf");
And changed code is:
string
FilePath = ResolveUrl(
"http://www.textbooksonline.tn.nic.in/Books/Std07/Std07-II-TamEng.pdf"
);
WebClient User =
new
WebClient();
Byte[] FileBuffer = User.DownloadData(FilePath);
if
(FileBuffer !=
null
)
{Response.ContentType =
"application/pdf"
;
Response.AddHeader(
"content-length"
, FileBuffer.Length.ToString());
Response.BinaryWrite(FileBuffer);}
Thanks In Advance For Who Helps,
Reply
Answers (
1
)
C#: Sign in with Google mail (Gmail)
How to load video into winforms from folder resources?