Convert Byte Array to Outlook format (.MSG) RRS feed

  • Question

  • I uploaded an outlook (.MSG) email to a SQL database as byte Array.  I was able to retrieve the byte array but need to convert it back to it's original format to be display to the user.  How would I go about accomplishing this task?  I'm trying to write in C#.  
    Monday, April 29, 2019 8:21 PM

All replies

  • When saving the MSG file to a byte array the process is to reverse it, read back the byte array and save to disk via reading the byte array using a SELECT someBtyeArrayField WHERE SomeId = n.

    Please remember to mark the replies as answers if they help and unmarked them if they provide no help, this will help others who are looking for solutions to the same or similar problem. Contact via my Twitter (Karen Payne) or Facebook (Karen Payne) via my MSDN profile but will not answer coding question on either.

    NuGet BaseConnectionLibrary for database connections.

    profile for Karen Payne on Stack Exchange

    Monday, April 29, 2019 9:06 PM
  • Hi ThaiX,

    Thank you for posting here.

    For your question, you could refer to the video in the link below.


    Best Regards,


    System.Security.CryptographyNote: This response contains a reference to a third-party World Wide Web site. Microsoft is providing this information as a convenience to you.
    Microsoft does not control these sites and has not tested any software or information found on these sites; Therefore, Microsoft cannot make any representations regarding the quality, safety, or suitability of any software or information found there.
    There are inherent dangers in the use of any software found on the Internet, and Microsoft cautions you to make sure that you completely understand the risk before retrieving any software from the Internet. 

    MSDN Community Support
    Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com.

    Tuesday, April 30, 2019 8:26 AM