Hi,
I tried to generate JPG from SVG.
In Windows environment it is working well.
I'm getting problem while generating JPG file in
specific cases on RedHat Linux ES 3.0 environment.
The following are the lines of code used by me to
create jpg.
istream = new
StringReader(contentSVG);
trans = new JPEGTranscoder();
input = new TranscoderInput(istream);
ostream = new
FileOutputStream("filename.jpg");
output = new
TranscoderOutput(ostream);
trans.transcode(input, output);
In Case1 when I directly execute this program it is
working perfectly. Even though the user who is executing this is not a
root user.
In Case2 When this program is called by another
service.
The service was
started by non-root user. In this case it creating the file
called "filename.jpg" and after that trans.transcode() method is not updating
the file so the size of the file same as 0 bytes.
The service was started by root
user. Everything working fine. The file creating and file updated
with the bytes so the actual jpg image exist in the file.
If you anyone have any idea on this problem could
you please guide me.
Regards,
Chandra
|
- Re: JPG generation problem in Linux Chandra
- Re: JPG generation problem in Linux Thomas DeWeese
- Re: JPG generation problem in Linux Chandra
- Re: JPG generation problem in Linux Tonny Kohar