Chilkat
HOME
Android™
ASP
Visual Basic
VB.NET
C#
iOS (IPhone)
Objective-C
C++
C
MFC
Delphi
FoxPro
Java
Perl
PHP Extension
PHP ActiveX
Python
PowerShell
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>
|
© 2000-2012 Chilkat Software, Inc. All Rights Reserved.