FSO impersonation, ADODB.Stream or anything that will work

I am trying to grab an image using FSO and it is accross the network on another server. This is what i have thus far:

    Dim objFSO, objFile
    Const FILE_GRABBING = "\\TheServer\client_data\ClientFolder\pics\1560639_1.JPG"

    set objFSO = Server.CreateObject("Scripting.FileSystemObject")
    If (objFSO.FileExists(FILE_GRABBING)) Then
            Set objFile = objFSO.GetFile(FILE_GRABBING)
            Response.Write("2-Got It<br>")
            Response.Write("FILE_GRABBING = " & FILE_GRABBING & "<br>")
      Response.Write("FILE_GRABBING = " & FILE_GRABBING & "<br>")
      End If

   set objFSO = nothing

I know the image is there and i am it is not grabbing it. I need to use impersonation to get to the server i am grabbing the images from but i did not think that i needed to do that when using FSO.

How can i accomplish this using FSO and impersonation.
I also tried ADODB.Stream but i keep getting this error:

ADODB.Stream error '800a0bba'

File could not be opened.


I just need to get anything to work without using a 3rd party componant.

Any ideas from anyone.
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Are you on a domain?  If so, the web server will have to be loged in as an accound that can access the remote PC.  If you are not on a domain, you can try maping a drive to the remote server.  Then try opening the file using the mapped drive.

Is this IIS5 or IIS6?  If it is 6, then the mapped drive idea will not work. (i think you will have to tell IIS6 to allow the mapped drives.  It does not by default)

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
LantraxAuthor Commented:
The website is on a server that is on the same network as the server which holds the images. The problem is when i try to get the images do display on the browser. I set up an account on the image server and can use impersonation to get into that acount to get the images through the network for the browser.

My problem is that i can't seem to get FSO to use impersonation nor can i get ADODB to use impersonation.

Do you know how to do either of these?
hmm. sorry. I do not.
use xml:

Set objHTTP = Server.CreateObject("MSXML2.XMLHTTP")
objHTTP.Open "GET", WebUrl, False
set objHTTP = nothing
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.