CComVariant BlobFile; if(FAILED(ipRow->get_Value(FileIndex, &BlobFile))) { MessageBox(0, "COULD NOT RETRIEVE BLOB FILE", "TESTING", MB_OK); return false; } MessageBox(0, "Before writing to stream", "TESTING", MB_OK); CComPtr ipStream; HRESULT hr = ::CreateStreamOnHGlobal(NULL, TRUE, &ipStream); BlobFile.WriteToStream(ipStream); IBlobStreamPtr ipBlobStream(ipStream); MessageBox(0, "Before sav..