IUploadRsp::GetContentSize

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

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