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".
Visual Basic.NETASP.NET.NET ProgrammingWeb Development

Avatar of undefined
Last Comment
Rajar Ahmed

8/22/2022 - Mon
ASKER CERTIFIED SOLUTION
Rajar Ahmed

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
All of life is about relationships, and EE has made a viirtual community a real community. It lifts everyone's boat
William Peck