Run application on server using browser

I want to run an application - say abc.exe through browser. This abc.exe translates an image file from one format to another. Its runs a function in a DLL using SHELL command.

Now I want to put this whole translation process on browser. User would select to and from format and there would be a file on the web-server, and abc.exe would run on the server to create the output file and user can save this file.?

How can i write such application? Any programming language...
Who is Participating?
VoteyDiscipleConnect With a Mentor Commented:
PHP, ASP, and Java all run server-side, invisible to the browser.  Each has similar commands (shell sounds right to me) to execute any arbitrary command-line commmand.

In PHP getting the file to stream back to the browser would just be:

header('Content-Type: image/png');

(Or whatever MIME type goes with the type of image you're producing.)  The user's browser will then either display it (and it can be saved from there) or immediately pop up a "Save As..." box, depending on browser settings.
In PHP...


... will run the program.  As to processing the output, what happens to it now? It saves it in another file?  How is all that controlled?
at999Author Commented:
how  it would go with ASP and java?

using SHELL?
but this application needs tobe executed on server not on client browser.
And it should translate the file and the translated file should be allowed to be saved by the user.
at999Author Commented:
how to do this using ASP?
Do I have to register any DLL-or component on server/client ?
That application might be using COM etc.
deeppraConnect With a Mentor Commented:
When u want to do this in JSP or servlet then

java.lang.Runtime runtime= java.lang.Runtime.getRuntime();
runtime.exec("path of the file");
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.