Starting an Application

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I am storing application data as a byte array in my database. In this case
the application is a Media Player file of the form c:\medialfiles\file1.wmv.
I guess the question could also apply to application files of form .doc or
..xls, etc. What I would like to know is that when I recover the byte array
from my server containing the serialized file contents, do I have to stream
back to a file on disk to enable the parent application to run it or can I
somehow avoid disk operation and activate the application form the file
contents in memory in the form of a memorystream or some other in memory
format. Can I avoid having to stream my application file back to disk and
still have my parent application load it?

Thanks,
Fred Herring
 
I think it is all depending on how the target app is designed (if you can
communicate with it at runtime and if it provides a way to accept the input
format you want to. For example, for ActiveX exe, such as Word, you can
start it from your app through automation, and have it to open a file.
Should Word have an API that allow to open a document from a stream, then
you should be able to feed the running Word a stream (but the fact is Word
does not have such API, as you know).

If you design the target app, I'd imagine you can do that with .NET
remoting, so that other app can feed this target app data in your preferred
format: memory stream, DataSet, custom class...
 
Back
Top