The information in this article applies to:
SUMMARYWhen using the GetChunk method of the Internet Transfer control to download binary files, the downloaded file may be larger than the original file. This is the case if the Variant returned from the GetChunk method is written directly to disk. MORE INFORMATION
A Variant containing an array requires 12 bytes more than the array alone. This extra data is used to describe the contents of the variant. If the variant is written directly to disk, the 12 extra bytes are written to disk as well as the array. To avoid this situation, assign the variant to an intermediate byte array and write that array to disk. The following code illustrates this method:
REFERENCESMicrosoft Developer Network: Data Type Summary Additional query words:
Keywords : |
Last Reviewed: April 29, 1999 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |