Is there anyway to use a UNC path to connect with Msxml2.ServerXMLHTTP? For example:
I do not want to run IIS on the box with the images I am trying to get, is there anyway to run a UNC path?Code:<%@ Language=VBScript %> <% Response.ContentType = "image/jpeg" ' Uncomment to prompt user for download or run with associated program. ' Response.AddHeader "content-disposition","attachment;filename=ReadMe.jpg" Set objHTTP = Server.CreateObject("Msxml2.ServerXMLHTTP") ' Point to an image file with adequate access permissions granted objHTTP.open "GET", "http://www.nba.com/media/nba_hpheader_plain_v01.jpg", false 'objHTTP.open "GET", "\\server\directory\wwwroot\test\banner.jpg", false objHTTP.send Response.BinaryWrite objHTTP.ResponseBody Set objHTTP = Nothing %>
Thanks!




Reply With Quote