midora Posted February 15, 2014 Share Posted February 15, 2014 Dragging an image from Firefox to Paint.NET shows a bad filename and extension. I.e. http://css-tricks.com/examples/RoundButtons/images/bg.png The file is streamed OK (it shows transparency) but the filename is something ending with .bmp located in the users temp folder. I expect that you are streaming the file from "FileContents" but taking the name form DataFormats.FileDrop and not from "FileGroupDescriptorW" because "FileGroupDescriptorW" does not contain a path. I would propose to take the "FileGroupDescriptorW" name, set the file to dirty, and allow only "Save As" for this file (simular to "Paste to new image") No idea what kind of code you are using to stream the file but http://www.codeproject.com/Articles/28209/Outlook-Drag-and-Drop-in-C works quite good (if all fixes are integrated to the code) and contains handling of files and contents arrays. The code is not specific to Outlook. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.