Chilkat HOME ASP Visual Basic VB.NET C# Visual C++ C MFC Delphi FoxPro Java Perl PHP Python 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"); } } } |
Need a specific example? Send a request to support@chilkatsoft.com
© 2000-2008 Chilkat Software, Inc. All Rights Reserved.