How do u convert any executable file to a web service

Say i have an executable software...say something like an Optical character resolution software...or something like a dictionary software..which i normally run as an exe file..
now how do i go about writing up java code, which allows me to convert this capability into a web service??
Any opinion/guidance is most welcome.

all right...we can use:
Runtime r=System.getRuntime();
Process p=r.exec("c:\\thatfile.exe something"); //to
load that application...
InuputStream in=new InputStream(p.getInputStream());
i tried that with windows media player...replaced
thatfile.exe withe full path of wmplayer.exe and
something with an mpg file name...
but all i could do was play that file..now what if i
want to change the brightness??
what i mean is..how do i get to know WHAT TO SEND IN
A PROCESS'S INPUT/OUTPUT STREAM ???
lets try a simple example..lets open up the
notepad...and try to save a file as abc.txt with the
content as xyz....how do we do it?With much difficulty.
Which suggests notepad is an excellent example if you really want to do this.
You might look at java.awt.Robot. Not sure it if will work but you can try.
I know autoit (which you can search for on the internet) would work. You would write an autoit script and then use autoit to run the script. The script would take arguments, like "abc.txt" and "xyz.txt", and run notepad making notepad do whatever.
A non-gui app, which notepad obviously isn't, could be controlled by streams (see java.lang.Process)
For the right windows app using a COM interface might be better. At least in my experience figuring out how to get what you want from COM (one you didn't write) is a nightmare. But possible. A 'service' might actually need this because it might not be possible to pop a gui on some server set ups (not sure about this though.) Doing this either requires that you write JNI or find a third party tool that provides this functionality for you.
In all of the above you need to figure out the functionality of the exe, and then write a layer that provides the specific functionality that you need to control.
And of course none of the above has anything to do with web services but rather it is just how to control an executable.

Similar Messages

  • Converting a java file to a web service

    How can i convert a java file to a web service,And then invoke that service by making my other java file.

    You can convert your java file into a WSDL with the WSDL2Java utility in Axis. This will create a definition that will be accessible by potential clients.
    To deploy your java class, you can use Axis in a Web Server of your choice (Tomcat, Apache). All you need to do is run the Axis Admin Client for a deploy.wsdd file and point your client to the IP:PORT.
    Very straightforward.
    http://ws.apache.org/axis/java/user-guide.html
    Hope it helps.
    SBO

  • How do I convert any video-files to audio-files using Applescript?

    Hi, when you are in finder you can right-click on a video to choose the option encode. From there you can choose an option: only audio.  I want to use this in applescripting to automate things but I searched for three months now and I can't seem to find out how. I searched the web, the applescript dictionary,... but without results.
    I would be very happy if anyone can tell me how. Wether you can give me a link or you can directly say how, then please do so.
    thanks in advance,
    Kanti Kuijk

    That service uses an Automator workflow.  You can use the Encode Media action in a workflow (which can also contain AppleScripts), or use an AppleScript to control the Quicktime Player application that the action uses.

  • I have a Nikon D600 and D800 and I shoot everything in Raw. I use Photoshop Elements 9 for processing but I have been unable to convert any RAW files to open in PSE. Says unable to parse the file. What does this mean and how do I fix it?

    I have a Nikon D600 and D800 and I shoot everything in Raw. I use Photoshop Elements 9 for processing but I have been unable to convert any RAW files to open in PSE. Says unable to parse the file. What does this mean and how do I fix it?

    Since pse 9 can only use up to camera raw 6.5 and the d600 needs at least 7.3 and the d800 needs at least 6.7, you can use the
    8.6 adobe dng converter to convert those files to dng copies, which then pse 9 should open.
    8.6 dng converter
    windows
    Adobe - Adobe Camera Raw and DNG Converter : For Windows : Adobe DNG Converter 8.6
    mac
    Adobe - Adobe Camera Raw and DNG Converter : For Macintosh : Adobe DNG Converter 8.6
    Note:
    If you have windows xp or vista or mac os x 10.6, then you'll need to use the 8.3 dng converter instead
    windows
    Adobe - Adobe Camera Raw and DNG Converter : For Windows : Adobe DNG Converter 8.3
    mac
    Adobe - Adobe Camera Raw and DNG Converter : For Macintosh : Adobe DNG Converter 8.3
    how to use the dng converter
    Camera Raw: How to use Adobe DNG Converter - YouTube
    more info on supported cameras and camera raw plugins required
    Camera Raw plug-in | Supported cameras
    Camera Raw-compatible Adobe applications

  • How do I convert a VLC file to imovie. I have managed to download the mini dvd disc from the video camera onto a USB and have saved the file on my desktop but have no clue how to get it into iMovie so I can edit and send via email. Any ideas!!!

    How do I convert a VLC file to iMovie.
    I've managed to download the mini dvd from the video camera onto a USB and have save onto my Desktop.
    But have no idea how to convert to iMovie so I can edit and attach video to an email and Facebook.

    Edit WMV
    http://www.microsoft.com/windowsxp/using/moviemaker/getstarted/default.mspx
    and http://www.microsoft.com/windows/windowsmedia/forpros/encoder/default.mspx
    Also... I have NOT used those products, I only forward due to other mentions
    Convert http://premierepro.wikia.com/wiki/FAQ:How_do_I_convert_my_files%3F
    Edit Vob http://premierepro.wikia.com/wiki/FAQ:How_do_I_import_VOB_files_/_edit_a_DVD%3F
    $99 http://www.corel.com/servlet/Satellite/us/en/Product/1175714228541#tabview=tab0
    $99 http://www.womble.com/products/mvw.html
    $80 http://www.nchsoftware.com/prism/index.html
    $75 http://www.videoredo.com/en/index.htm
    $75 http://www.magix.com/us/movie-edit-pro/
    $70 http://www.nchsoftware.com/prism/index.html Converter
    $40 http://www.daniusoft.com/dvd-ripper.html#135
    $40 http://www.deskshare.com/dmc.aspx Digital Media Converter
    $00 http://www.squared5.com/ MPEG Streamclip Converter
    $00 http://www.erightsoft.com/SUPER.html Multi-Converter
    $00 http://www.virtualdub.org/ Mpeg to AVI Converter

  • How can I convert an AiFF File to a Wav file?

    How can I convert an AiFF File to a Wav file?
    Any free software out there? or can iTunes or Quicktime perform this task?
    -D

    or can iTunes or Quicktime perform this task?
    Yes to both.
    In Quicktime Export -> Export Sound to Wave
    In iTunes, check your preferences for General>Import and then right click on the file to convert to WAV
    Also STP can do that.
    Double click the file to open it in the File Editor and Save as, then select Wave as the filetype.

  • How do I convert an MP3 file to use it as a ringtone on my iPhone 3G?

    How do I convert an MP3 file to use it as a ringtone on my iPhone 3G?

    Andrew J wrote:
    Everybody's wrong wrong wrong. You don't need garageband. Select the song, go to info. You need to select a start and stop time for the song that can't be any longer than 40 seconds in length. Then in advanced mode you convert the song to acc. once done locate the file on the computer. it should end in .m4a . Change the a to an r so it reads .m4r Drag the file to the desktop, double click and it ends up in ringtones folder.
    That's it! Works every time. Or for those who want easier:
    http://www.ambrosiasw.com/utilities/iToner/
    My drug of choice.

  • How do I convert a pdf file to photoshop?

    how do I convert a pdf file to photoshop?

    unless you understand what you're doing and why, opening .pdf in Photoshop is a very risky move
    because any vector objects, including fonts, will be pixelized (rastered at the chosen document ppi)
    this really sucks if the designer delivered a professionally packaged PDF with vector elements because the vector will not print vector sharp
    for example
    a moron at a print shop drags PDF business cards or posters into Photoshop and prints pixelized vector objects -- when you ask why the vector didn't print sharp -- they are clueless
    you also may hit profile issues that change the designer's color
    there must be 50 ways to ruin a project (and 25 of them are downstream)...

  • How do I convert a prel file into..

    How do I convert a prel file into a mp3, avi, etc. I am needing to upload the video onto youtube and the file is not compatible as a prel. I am using adobe premier elements 12.

    mgroce
    Given you have Premiere Elements 12/12.1. (limit...2 GB 15 minutes, even if you have an extended time account at YouTube...the extended time account applies only to file uploaded to YouTube at the YouTube web site)
    If your goal is to get a Premiere Elements 12 Timeline uploaded to YouTube, you have two possible routes....
    a. Publish+Share/Social Websites/YouTube and your selection of the preset that matches your Timeline properties
    or
    b. Publish+Share/Computer/AVCHD with one of the .mp4 preset to export the Timeline content to a file saved to the computer hard drive from where you upload it to YouTube at the YouTube Web site.
    For best results, I would suggest an AVCHD.mp4 file instead of the "avi" that you mentioned. What is the video compression that goes with that "avi" wrapper?
    As for .mp3, that is a audio file extension, what is your intent on that....an upload to YouTube with just music and with a black video display? YouTube strictly enforces any copyright issues, so please assure that there are none associated with these .mp3 otherwise YouTube will remove them.
    Please review and consider, and then let us know if you have the information that you sought.
    Thank you.
    ATR

  • How can I convert a pdf file that's larger than 100MB to word

    How can I convert a pdf file that's larger than 100MB to word?
    I have just paid $20 to Adobe to get this facility but It won't work ,
    as the pdf is larger than 100MB,
    I actually believe that I have paid twice for adobe but I'll take this up with them,
    in the meantilme,
    do you have any suggestions, I really need this material in word urgently,
    many thanks
    Shanna

    If your files are this large, ExportPDF is the wrong tool for you. You need Adobe Acrobat, which runs locally and does not need to send your files to Adobe.

  • How do I import any extension file within project in netbeans ?

    Can anybody tell that how can I add any text file or any extension file in netbeans project as I can import image within project and I can use that image when I run jar file..I do not have to move that image where I run my jar file..It will automatically take that image file from jar file...I want this thing same for files...In which I can read and write within project....(I m using netbeans 6.0 and jdk 1.6)
    Thanks...

    Thank you for yr prompt reply.
    May i try to explain once again.. I want a way to store a file (*.txt) in a package called "files" within my project. Now after compiling and making an executable jar of this project i wish to read and write to this *.txt file lying within files package. Though I m able to read this *.txt file ( with the help of getClass().getResourceAsStream() ) but i m unable to make any changes to this file within xxx.jar.
    ex:
    FileWriter fw = new FileWriter("c:/xxx.jar!/files/xyz.txt");
    Do u have ny idea? how can i do this ?
    can u plz suggest the correct forum for netbeans. Thanks once again.

  • HT3825 so how do you convert the raw files to jpeg in iphoto?

    how do you convert the raw files to jpeg in iphoto?

    Many thanks Barbara and dj_paige.
    What I didn't mention is that I'm using PSE 5 with ACR 4.6, if its relevant.  I'm thinking of updating to the next version when its out in the hope that it will run with Windows 7 64 bit or I may go to Lightroom.
    I can now see that I can batch convert a whole folder of files using "process multiple files" as dj_paige suggested but that is too many at once as the settings I choose won't be relevant for all the pics in the folder. 
    I was hoping to batch convert say 5 or 6 similar photos at a time with the same settings. I'm not quite clear what you're suggesting but I'm hoping that its a "work round" using two stages to achieve this. 
    I can't see a list of open files within ACR to ensure that they are all selected as you suggest. 
    What does clicking Open rather than Done mean?  Does this amend the original RAW file to the settings selected so that if I then "process multiple files" on the whole folder to convert from RAW to JPEG they will in fact have already been processed in smaller groups so I can convert without applying any further changes?
    If so, what settings should I apply to "process multiple files" to ensure a simple conversion of file type rather than any further adjustments?
    Any further help on this would be much appreciated.
    Andrew

  • How can I convert a wave file to a jpeg file (picture) is it possible???

    Hello:
    How can I convert a wave file to a jpeg file (picture) is it possible???

    zuckini;
    I am pretty sure you know, but just to be completely sure: a wave is (usually) sound signal and a jpeg file is an image.
    If you mean how to display the wave signal in a graph and then save the graph as a jpeg file, then just drop a graph indicator in the control panel, wire the signal. Check any of the example shipped with LabVIEW on how to do this. To get the image, drop a graph indicator's invoke node in the block and select "Get Image". Check this page for detailed information.
    If you have something else in mind, please reply to this message with additional information about the wave signal, the image, etc.
    Regards;
    Enrique
    www.vartortech.com

  • How can i convert a .cda file to an mp3 file

    how can i convert a .cda file to an mp3 file

    Actually, CDA only represents a shortcut of audio track. In reality, it does not have any music file in it. That's the reason why you cannot play the files without the original CD in your computer drive. To solve this problem, you'd better convert your CDA files to the most common mp3 format. To know more about how to do that, you can refer to this article, hope it helps!

  • How can I convert a MOV file to 4K MP4?

    How can I convert a MOV file to 4K MP4 file? I can't find any default setting for MP4 nor I do known how to set one.

    Start with the Plus sign in the Setting pane> New Setting. Choose MPEG4 from dropdown. Give it a name and save and it will be saved in your custom presets. Make adjustments to resolution, bit rate, etc in Inspector.
    Russ

Maybe you are looking for