Skip to content

Commit 2be2d49

Browse files
VIEWERNET-4785 - Cannot load corrupted or damaged MSG with attachment with GroupDocsViewerException is thrown
1 parent ab77cc7 commit 2be2d49

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

Examples/GroupDocs.Viewer.Examples.CSharp.Framework/RunExamples.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ static void Main()
5151

5252
RetrieveAndPrintDocumentAttachments.Run();
5353
RetrieveAndSaveDocumentAttachments.Run();
54-
//RenderDocumentAttachments.Run();
54+
RenderDocumentAttachments.Run();
5555

5656
#endregion
5757

Examples/GroupDocs.Viewer.Examples.CSharp.NET6/RunExamples.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ public static void Main(string[] args)
4949

5050
RetrieveAndPrintDocumentAttachments.Run();
5151
RetrieveAndSaveDocumentAttachments.Run();
52-
//RenderDocumentAttachments.Run();
52+
RenderDocumentAttachments.Run();
5353

5454
#endregion
5555

Examples/GroupDocs.Viewer.Examples.CSharp/BasicUsage/ProcessingAttachments/RenderDocumentAttachments.cs

+1
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ public static void Run()
2222
{
2323
MemoryStream attachmentStream = new MemoryStream();
2424
viewer.SaveAttachment(attachment, attachmentStream);
25+
attachmentStream.Position = 0;
2526

2627
RenderAttachment(attachment, attachmentStream, outputDirectory);
2728
}

0 commit comments

Comments
 (0)