Actually, you *CAN* run ADODB.Stream in JavaScript in the browser.
Provided:
(a) The browser is MSIE.
(b) The site the JavaScript comes from is marked as a Trusted Site
(c) The browser user says "OK" when asked if he/she wants to allow an unsafe ActiveX control in the browser.
All of which combines to mean that this is only a practical solution in an inTRAnet, typically an in-house system where all users are required to use MSIE and required to set browser permissions to allow all this.
Having said all that...
The code posted still won't work, because these 2 lines
Code:
Stream.LoadFromFile(file_name)
...
map_string=GetFile("maps/Temp.dat")
mean that you are trying to load the file "Temp.dat" from the directory "c:\windows\system32\maps" *ON THE USER'S MACHINE*. Which is surely not at all what you intended to do.