IUploadRsp::GetMimeType

The GetMimeType method returns the MIME type of the uploaded object store item.

_bstr_t bstrMimeType = spIUploadRsp->GetMimeType();
Parameters
None.
Results
Returns a _bstr_t, which contains the MIME type 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; ...