include a file in a web application which is outside the web path...

include a file in a web application which is outside the web path...

am 11.04.2005 14:59:01 von fabrice

Hi,

Is it possible to include a file in a web application which is outside the
web path (without virtual directory).
Language is ASP with IIS6.

for example :

physical web path application:
e:\myapplication.
= http:\\www.myweb.net


other directory, outside
d:\securitypath

how to include a file locate in d:\securitypath by using INCLUDE or for
example

Can i use serverpath ?

thanks a lot

have a nice day.

fabrice

Re: include a file in a web application which is outside the web path...

am 12.04.2005 06:21:33 von Ken Schaefer

You will need to add the directory as a "virtual directory" underneath an
existing directory in the webroot. Then you can use Server.Mappath()

Otherwise, you will need to use an ASP/ASP.NET page, and use some kind of
binary reader (eg ADO Stream object) to read in the data from this other
folder and stream it to the user (e.g. using Response.BinaryWrite())

Cheers
Ken

--
Blog: www.adopenstatic.com/cs/blogs/ken/
Web: www.adopenstatic.com


"fabrice" wrote in message
news:u2jZqYpPFHA.688@TK2MSFTNGP10.phx.gbl...
: Hi,
:
: Is it possible to include a file in a web application which is outside the
: web path (without virtual directory).
: Language is ASP with IIS6.
:
: for example :
:
: physical web path application:
: e:\myapplication.
: = http:\\www.myweb.net
:
:
: other directory, outside
: d:\securitypath
:
: how to include a file locate in d:\securitypath by using INCLUDE or for
: example
:
: Can i use serverpath ?
:
: thanks a lot
:
: have a nice day.
:
: fabrice
:
:
:
:
:

Re: include a file in a web application which is outside the web path...

am 26.04.2005 00:39:14 von Bullschmidt

And this related item might be of interest:

How do I read the contents of a remote web page?
http://www.aspfaq.com/show.asp?id=2173

Best regards,
J. Paul Schmidt, Freelance ASP Web Developer
http://www.Bullschmidt.com
ASP Design Tips, ASP Web Database Demo, Free ASP Bar Chart Tool...


*** Sent via Developersdex http://www.developersdex.com ***