Relative Content

Tag Archive for vb.netemailoutlookdrag-and-drop

Drag and drop files and emails issues

I have been working on a project which includes a drag and drop function. What I would like to create is an application where the end user can drag and drop files and/or emails that will be added to a database as a blob. The issue is that an email is not processed correctly. Files are put correctly in the database without an issue. But when I drop an email I have tried several ways but I always run into an issue. The code below works for the files but returns an error with the emails. The error states Cannot convert an object of the type System.IO.MemoryStream to the type OutlookItems.