Categories: MSDN / DotNet / Java / Scripts / Linux / PHP Ask - La ask - La Answer

Launch application from filestream?

Hello all,

I am converting from VB6 and trying out some different types of applications. What I am trying to do is this:

I want to open and decrypt a file using a program in Vb.net. Now let say for example that the decrypted file is an image. I would like to send that image to the default viewer and have it open properly. I could resave the decrypted file to disk and just launch it that way but I would prefer not to. The image is held in a filestream (based on article 7019 written by Richard Mansfield in the security section) and I would like to just pass this to the correct application and have it work. Is this possible in any form? And if so could someone provide some general and, if possible, detailed instructions? Please use little words as I am frightened easily :)

Thanks so much for any input.

Rik
[859 byte] By [RPardun] at [2007-11-11 7:40:34]
# 1 Re: Launch application from filestream?
Unless the default image viewer knows how to read from a memory stream (not likely), you'll have to save the decrypted file to disk. You may then use Process.Start to open the file in the associated application.
Phil Weber at 2007-11-11 21:48:48 >