Implement file download via xmlhttp object

zhaozj2021-02-16  128

VAR XMLHTTPOBJ = New ActiveXObject ("Microsoft.xmlhttp"); XMLHTTPOBJ.Open ("get", "http://127.0.0.1:7001/Velocity/test.jpg" );Xmlhttpobj.send(); var objstream = new ActiveXObject ( "ADODB.Stream"); ​​objStream.type = 1; objStream.open (); objStream.write (xmlHttpObj.responseBody); objStream.saveToFile ( "C: /WINNT/GIRL.jpg", 2); objStream. CLOSE ();

转载请注明原文地址:https://www.9cbs.com/read-8624.html

New Post(0)