?
Solved

Can this server url convert into client resolved url to access the file on the client side?

Posted on 2016-08-15
1
Medium Priority
?
79 Views
Last Modified: 2016-08-21
as a security reason, can I view the pdf report from this:

Server URL:   sample = String.Format("{0}?t={1}", HttpContext.Current.Request.Url.GetLeftPart(UriPartial.Authority) & ResolveUrl("~/") & "ReportRepository/" &  "/" & filName.pdf, DateTime.Now.Ticks)

Client Physical Path: C:\Users\jmanuel001\AppData\Local\Temp\filName.pdf

then view it in: <embed type="applcation/pdf"> tag in ASP.Net

Note that I can access the created file in the temp folder but the pdf says: "Acrobat Reader, Access Denied".
0
Comment
Question by:akoIT
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 
LVL 18

Accepted Solution

by:
Rajar Ahmed earned 2000 total points
ID: 41758168
PDF should resides inside your application/website directory in order to view in browser.
You can use iframe to view the PDF

<iframe src="http://docs.google.com/gview?url=http://infolab.stanford.edu/pub/papers/google.pdf&embedded=true" style="width:600px; height:500px;" frameborder="0"></iframe>


Rajar
0

Featured Post

NFR key for Veeam Agent for Linux

Veeam is happy to provide a free NFR license for one year.  It allows for the non‑production use and valid for five workstations and two servers. Veeam Agent for Linux is a simple backup tool for your Linux installations, both on‑premises and in the public cloud.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Does your audience prefer people in photos or no people? How can you best highlight what you’re selling? What are your competitors doing, and what can you do that is different and unique from them?  Continue reading to learn how to make your images …
When the s#!t hits the fan, you don’t have time to look up who’s on call, draft emails, call collaborators, or send text messages. An instant chat window is definitely the way to go, especially one like HipChat. HipChat is a true business app. An…
The viewer will learn how to count occurrences of each item in an array.
The viewer will learn how to create and use a small PHP class to apply a watermark to an image. This video shows the viewer the setup for the PHP watermark as well as important coding language. Continue to Part 2 to learn the core code used in creat…
Suggested Courses

752 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question