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
|
Load Binary FileLoad a binary file into a CkByteArray object. (Actually, any file, text or data can be loaded. If it is a text file, the character data is treated as binary.)
import com.chilkatsoft.*; public class ChilkatExample { static { try { System.loadLibrary("chilkat"); } catch (UnsatisfiedLinkError e) { System.err.println("Native code library failed to load.\n" + e); System.exit(1); } } public static void main(String argv[]) { CkByteData zipData = new CkByteData(); boolean success; success = zipData.loadFile("dude.zip"); if (success != true) { System.out.println("Failed to load file"); } else { System.out.println("Success"); } } } |
© 2000-2010 Chilkat Software, Inc. All Rights Reserved.