I need to acquire content body of MIME encoded message (as IMessage
object).I want using C# and CDO Interop extract such data
("eJ8+IggVAQaQ. .." unicode part).
Here is example of Bodypart (complete original here
http://msdn.microsoft.com/library/de...kbone_767n.asp)
------ =_NextPart_000_ 01BAE995.CB66A2 90
Content-Type: application/ms-tnef
Content-Transfer-Encoding: base64
eJ8+IggVAQaQCAA EAAAAAAABAAEAAQ eQBgAIAAAA5AQAA AAAAADoAAEIgAcA GAAAAElQTS5NaWN y
b3NvZnQgTWFpbC5 Ob3RlADEIAQWAAw AOAAAAzAcBABcAD QAWAAYAAgAWAQEg gAMADgAAAMwHAQA X
---cutted----
------ =_NextPart_000_ 01BAE995.CB66A2 90--
I tried to obtain it through CDO.IBodyPart.G etStream() ( I also tried
GetDecodedConte ntStream, same result) but any attempts to Read() or
ReadText() from ADODB.Stream
throws ExecutionEngine Exception or NullReference one.
Saving to file works fine but I want to do all operations in-memory
(SaveToFile have only one parameter - path to file - unable to replace
it with any Stream-like object)
I dont sure how to use ADODB.Stream, but according to debug info - it's
opened, position in the begining of the stream, other properties look
correct either. But no luck with read from.
Any ideas or detailed RTFMs (MSDN didn't enlighten about this problem)
PS This message is second part of problem with getting attachments from
MS-TNEF encoded message. I was pointed to OpenPOP Library, but
unfortunately OpenPOP TNEFparser implementation isn't good enough
(maybe only in my case =( ), and now I'm going to extract body and
decode it by hands with some help of OpenPOP TNEFParser.