IDownloadRsp::GetContentSize

The GetContentSize method returns the size (number of bytes) of the downloaded object store item.

long lFileSize = spIDownloadRsp->GetContentSize();
Parameters
None.
Results
Returns a long integer, which contains the size (number of bytes) of the downloaded object store item.
Sample
The following is a fragment from the complete example for the Download command.
   ...
   // Obtain the specific response information contained in the custom DownloadRsp component
   IDownloadRspPtr spIDownloadRsp(spIAppIntRsp);
_ASSERTE(spIDownloadRsp != 0);
std::cout << "PathName=" << (LPCSTR) spIDownloadRsp->GetFilePathName() << std::endl;
std::cout << "MimeType=" << (LPCSTR) spIDownloadRsp->GetMimeType() << std::endl;
std::cout << "FileSize=" << spIDownloadRsp->GetContentSize() << " bytes" << std::endl; ...