Author |
|
sarahmcjj Newbie
Joined: 09 July 2022 Location: United Kingdom
Online Status: Offline Posts: 9
|
Posted: 10 July 2022 at 3:50am | IP Logged
|
|
|
Hello,
Just like RawHeader property, I need to show the full source of current message without saving it to the disc, so where's the MessageRawData As String?
|
Back to Top |
|
|
Alex AfterLogic Support
Joined: 19 November 2003
Online Status: Offline Posts: 2206
|
Posted: 11 July 2022 at 1:06am | IP Logged
|
|
|
bytes = msg.GetMessageRawData();
str = Encoding.GetEncoding(1252).GetString(bytes);
1252 encoding works best for converting bytes to string.
Please note that the string can appear huge. It's not recommended to process such large amount of data as strings (that's why no built-in method to get the message source as a string). Much better to keep it as bytes.
Regards,
Alex
|
Back to Top |
|
|