c# - How to invoke an executable desktop application from within an ASP.NET MVC application? -
i have finished developing executable desktop application generate fractal image based on passed-in arguments. output type jpeg.
now developing site under asp.net mvc 3. want use executable within site.
is possible use without converting class library , recompiling?
if mean "to run on user's machine", not "as is" - might want @ silverlight that.
if mean "to use @ server", of course depend on how operates (whether prompts input etc), , how works (does use gdi+, example? isn't recommended use on web servers).
but sure; can shell exe process.start
, or if .net exe can either add reference directly exe , use as library (if has appropriate code)
there way run in-process via appdomain.executeassembly
- not sure latter idea on web-server, though... if exe talks stdout
.
for getting image client, want processing happen (perhaps caching) in route uses return file(...);
mvc simulate image stream.
Comments
Post a Comment