// For complete examples and data files, please go to https://github.com/groupdocs-viewer/GroupDocs.Viewer-for-.NET
' Setup GroupDocs.Viewer config
Dim config As ViewerConfig = Utilities.GetConfigurations()
' Create image handler
Dim handler As New ViewerImageHandler(config)
Dim attachment As New EmailAttachment(DocumentName, "attachment-image.png")
' Get attachment original file
Dim container As FileContainer = handler.GetFile(attachment)
Console.WriteLine("Attach name: {0}, Type: {1}", attachment.Name, attachment.FileType)