Solved

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

Posted on 2016-08-15
1
56 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
1 Comment
 
LVL 18

Accepted Solution

by:
Rajar Ahmed earned 500 total points
Comment Utility
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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Author Note: Since this E-E article was originally written, years ago, formal testing has come into common use in the world of PHP.  PHPUnit (http://en.wikipedia.org/wiki/PHPUnit) and similar technologies have enjoyed wide adoption, making it possib…
International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.
This tutorial walks through the best practices in adding a local business to Google Maps including how to properly search for duplicates, marker placement, and inputing business details. Login to your Google Account, then search for "Google Mapmaker…
The viewer will get a basic understanding of what section 508 compliance can entail, learn about skip navigation links, alt text, transcripts, and font size controls.

762 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

Need Help in Real-Time?

Connect with top rated Experts

8 Experts available now in Live!

Get 1:1 Help Now