ParcelDownloadGZip()


Download Parcel with GZip compression from InBox or Archive with EDI envelope intact.

Public Function ParcelDownloadGZip(ByVal SessionID As String, _
                                  
ByVal ParcelID As Long) _
                                  
As FileInfo

Parameters

SessionID
String - GUID
The current session's GUID in string format. This is a 32-character hexidecimal string in the format:
00000000-0000-0000-0000-000000000000. This is the value returned by the Login() function.
ParcelID
Long
The value assigned to track a specific Parcel on ECGrid.

Returns

FileInfo Object

ParcelID
Long
The value assigned to track a specific Parcel on ECGrid.
FileName
String(1,127)
The file name assigned to a Parcel. It will be stored on disk with this name.
FileDate
Date
The date/time stamp of the file (UTC).
Bytes
Integer
The number of bytes in the Parcel.
Content
Byte()
A byte array representing the data in the Parcel. See Uploading & Downloading Files.

Remarks

Downloads a complete Parcel from ECGrid as long as it has not been archived.

Once a Parcel has been successfully downloaded from the InBox the first time, ParcelDownloadConfirm() should be called to remove it from the pending download list.

If the payload is non-EDI data, uploaded with ParcelUploadEx() or ParcelUploadGZipEx(), then function will automatically strip the envelope and restore the original file name.

Example

Sample Code: Interchange Upload/Download

EventID: 6003

See Also

Parcels
ParcelDownloadConfirm()
ParcelDownloadInner()
Uploading & Downloading Files


© 2008-2011, Loren Data Corp.
All rights reserved.
ECGrid is a registered service mark of Loren Data Corp.
ECGridOS is a service mark of Loren Data Corp.