Open EXE Using Javascript

Labels:

<html>
<head>
<script language="javascript">
function loadexe()
{
alert('invoke');
w = new ActiveXObject("WScript.Shell");
w.run('notepad.exe');
return true;
}
</script>
</head>
<body onload=loadexe()>
</body>
</html>

CONVERT IMAGE TO BYTE USING ASP.NET

Labels: ,

Namespaces :-

System.Drawing;

Coding :-

byte[] bytArray;
Bitmap bImg = new Bitmap(Server.MapPath(path));
ImageConverter imgCon = new ImageConverter();
bytArray = (byte[])imgCon.ConvertTo(bImg , typeof(byte[]));