VB.NET Examples

ChilkatHOMEAndroid™ASPVisual BasicVB.NETC#iOS (IPhone)Objective-CC++CUnicode C++Unicode CMFCDelphi DLLDelphi ActiveXFoxProJavaPerlPHP ExtensionPHP ActiveXPythonPowerShellRubySQL ServerVBScript

VB.NET Examples

Bounced Mail
Bz2
Character Encoding
CSV
Digital Certificates
Digital Signatures
Email
FTP
HTML Conversion
HTTP
IMAP
Encryption
MHT / HTML Email
POP3
PFX
RSA
S/MIME
SMTP
Socket
Spider
SSH
SSH Tunnel
SSH Key
SFTP
Tar Archive
Upload
XML
XMP
Zip Compression
Misc

More Examples...
Amazon S3
Email Object
DKIM / DomainKey
NTLM
FileAccess
RSS
Atom
Self-Extractor
Service
PPMD
Deflate
DH Key Exchange
DSA
Bzip2
LZW

Byte Array
VB.NET FTPS
System.IO

 

 

 

 

 

 

Append to a Zip from a Byte Array

Download: Chilkat .NET Assemblies

Demonstrates how to append to a .zip from a byte array.

        Dim zip As New Chilkat.Zip()
        zip.UnlockComponent("anything for 30-day trial")

        zip.NewZip("test.zip")

        ' Rather than appending a file using AppendFiles or AppendOneFileOrDir
        ' This example loads the file into a byte array, and then appends the byte
        ' array.
        Dim fInfo As New System.IO.FileInfo("fw9.pdf")
        Dim numBytes As Long = fInfo.Length
        Dim fStream As New System.IO.FileStream("fw9.pdf", System.IO.FileMode.Open, System.IO.FileAccess.Read)
        Dim br As New System.IO.BinaryReader(fStream)
        Dim data As Byte() = br.ReadBytes(CInt(numBytes))
        br.Close()
        fStream.Close()

        zip.AppendData("taxForm.pdf", data)

        zip.WriteZipAndClose()




 

© 2000-2013 Chilkat Software, Inc. All Rights Reserved.