I am facing a weird problem. I am running tomcat as a webservice. I wrote a code for image compression, this worked fine on local machine. When I implemented the code on server (here also tomcat is running as a web service), the code didn't work. And the strange part of problem is, when I tried running tomcat from command rpompt on the server machine (for testing things), the same code worked fine.
What can be the problem here.... the same code works when tomcat runs at cmd prompt and fails for web service. Any suggestions????