Chilkat HOME ASP Visual Basic VB.NET C# Visual C++ C MFC Delphi FoxPro Java Perl PHP Python Ruby SQL Server VBScript
|
Reading binary files in ASP
This ASP script shows how to read a binary file. <html>
<head>
<meta HTTP-EQUIV="Content-Type" CONTENT="text/html;CHARSET=utf-8">
<title>How to Read Binary File in ASP</title>
</head>
<body bgcolor="#FFFFFF">
<%
set cc = Server.CreateObject("Chilkat.Charset2")
' The Chilkat charset conversion ASP component provides
' a useful method for reading binary files in ASP :
binaryData = cc.ReadFile("C:/temp/binary-file.dat")
' Write the binary data to the response
Response.BinaryWrite binaryData
%>
</body>
</html>
|
Need a specific example? Send a request to support@chilkatsoft.com
© 2000-2008 Chilkat Software, Inc. All Rights Reserved.