Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations John Tel on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Using xmlhttp object to download file

Status
Not open for further replies.

pilg

Programmer
Feb 16, 2001
82
GB

I understand that the XMLHTTP object is cabable of downloading files from a remote location.

Does anyone know how this is done? I have tried google with no luck.

I need to download a .CSV file and then run some processing on it.
 
I have checked the permissions on the directory and even tried opening it up to everyone but the file still does not download. Very strange.....:eek:(
 
does it give any errors...did check for the file at the correct place...did you make any changes to the code...go ahead and insert some response.write statements for debugging purposes to check if all the paths are correct...

-DNG
 
When I first run the script I don't recieve any errors whatsoever but if I hit refresh I recieve the following:

ADODB.Stream error '800a0bbc'

Write to file failed.

/test.asp, line 34

Which is this line:

oStream.savetofile DestFolder & myfilename, adSaveCreateNotExist

If I place a response.write in front of this line it displays but gives the same error as above but if I place it after it does not display.
 
as i said...check the write permissions...you havent set them properly yet...

-DNG
 
I have opened up the whole directory to everyone but still the file is not downloaded. The filing system couldn't be any opener.... I do not understand!

The error is:

ADODB.Stream error '800a0bbc'

Write to file failed.

/test.asp, line 34


---------------------:O(

 
check the permissions in both IIS Admin and the underlying file system.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top