WrapCompressedRTFStream() produces bad data
- From: "asnowfall@xxxxxxxxx" <asnowfall@xxxxxxxxx>
- Date: 13 Feb 2007 20:26:48 -0800
I wish someone can help me!!!!
WrapCompressedRTFStream() is returning S_OK but it is returning
corrupt data. Buffer returned by this API does have any RTF headers
and looks like a BINARY blob.
I am extracting PR_RTF_COMPRESSED stream from a TNEF file by parsing
the winmail.dat. This means I do not have any MAPI code except for
MAPIInitialize(). I thought my PR_RTF_COMPRESSED is corrupt, so I
opened winmail.dat using MfcMapi.exe; and i saw that PR_RTF_COMPRESSED
shown there is exactly with the stream what I am feeding to
WrapCompressedRTFStream(). I opened the winmail.dat in binary editor
and I was able to LZFU, compressed-rtf signature.
Even Winmail.exe, a TNEF viewer, is able to display the message body
contained in the winmail.dat.
So the stream is correct but I must be doing something wrong, please
help me.
I think following might be causing some problem
1) I might not have initiliazed MAPI properly. Currently I have just
called MAPIInitialize().
2) The IStream that is being passed to WrapCompressedRTFStream() is
created using CreateStreamOnHGlobal();
and the stream returned by this API might have some limitations.
Please help me figure this out...
TIA
Ramesh
.
- Prev by Date: WrapCompressedRTFStream() produces bad data
- Next by Date: Re: WrapCompressedRTFStream() produces bad data
- Previous by thread: Re: WrapCompressedRTFStream() produces bad data
- Next by thread: WebDAV SEARCH: (422) Unprocessable Entity
- Index(es):
Relevant Pages
|