Downloading a file
To download a file from an Encyclopedia volume, use DownloadFile and specify the path and either a FileName or FileId, as shown in the following example:
<SOAP-ENV:Body>
<DownloadFile>
<FileName>/Inventory/FallPromo.rptdesign;2</FileName>
</DownloadFile>
</SOAP-ENV:Body>
The file streams to the client as an attachment to the response, which includes identifying information about the file, such as the file type, owner, length, version, page count, and content ID and type. The ContentId element maps to the Content_ID in the MIME header of the attachment.
<SOAP-ENV:Body>
<DownloadFileResponse>
<File>
<Id>949</Id>
<Name>/Marketing/FallPromo.rptdesign</Name> <FileType>RPTDESIGN</FileType>
<TimeStamp>2008-03-06T21:58:05</TimeStamp>
<Owner>Craig Lew</Owner>
<UserPermissions>VSRWEDG</UserPermissions>
<Version>2</Version>
<PageCount>6</PageCount>
<Size>38912</Size>
</File>
<Content>
<ContentId>598</ContentId>
<ContentType>application/octet-stream</ContentType>
</Content>
</DownloadFileResponse>
</SOAP-ENV:Body>