IDownloadRsp::GetFilePathName

The GetFilePathName method returns the filename and path location on the local machine, of the downloaded object store item.

_bstr_t bstrFilePathName = spIDownloadRsp->GetFilePathName();
Parameters
None.
Results
Returns a _bstr_t, which contains the filename and path location on the local machine, 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; ...