Link to home
Start Free TrialLog in
Avatar of akoIT
akoIT

asked on

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

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".
ASKER CERTIFIED SOLUTION
Avatar of Rajar Ahmed
Rajar Ahmed
Flag of India image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial