tweety
10-18-2005, 02:10 AM
Hi,
I tried to open a text file and read its content using javascript.
The code is here:
var fso, f;
var ForReading = 1;
fso = new ActiveXObject("Scripting.FileSystemObject");
f = fso.OpenTextFile("C:\SampleCodes\Sample.txt",ForReading);
alert("File Content : " + f.ReadAll() );
f.close();
It works fine. I want to open and read an image file using javscript.
can anyone tell how to read an image file
Thanks in Advance,
Tweety :)
I tried to open a text file and read its content using javascript.
The code is here:
var fso, f;
var ForReading = 1;
fso = new ActiveXObject("Scripting.FileSystemObject");
f = fso.OpenTextFile("C:\SampleCodes\Sample.txt",ForReading);
alert("File Content : " + f.ReadAll() );
f.close();
It works fine. I want to open and read an image file using javscript.
can anyone tell how to read an image file
Thanks in Advance,
Tweety :)