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
B V
NA
22
5.5k
Pdf file content showing junk characters
Mar 4 2021 12:33 PM
I have developed an online portal for recruitment where users upload multiple pdf/word/excel files. The files are getting uploaded successfully, but when i try to view the uploaded files, it always display the junk characters as shown below
This is occurring only on production server, In localhost it works fine. Below is the code to open pdf files:
Dim client As New WebClient()
Dim buffer As [Byte]() = client.DownloadData(flpath)
If buffer IsNot Nothing Then
Response.ContentType = ContentType
Response.AddHeader("content-length", buffer.Length.ToString())
Response.AddHeader("content-disposition", "attachment;filename=" & Guid.NewGuid.ToString)
Response.BinaryWrite(buffer)
Response.Flush()
Response.End()
Is it a server isssue ?
Kindly Help on this
Thnaks
Reply
Answers (
2
)
how to display cross tab in grid view using asp.net
Trying to filter Database Data based on ID