Re: Jfor 0.52 : external graphics
Bertrand Delacretaz <[email protected]> Mon, 3 Jun 2002 06:50:41 +0200
| Newsgroups | gmane.text.xml.jfor.general |
|---|---|
| Organization | codeconsult |
| Message-ID | <[email protected]> |
On Monday 03 June 2002 04:45, Anatoly Osiko wrote: >. . . > However, if the same command is invoked from our application's cgi > script, in this particular case via > Perl's system call, the processing stumbles at exactly this line of > encodeJPEG (byte [] data) method of org.jfor.jfor.tools.jpeg.Encoder: > > Image image = Toolkit.getDefaultToolkit ().createImage (data); >. . . Might be that this call needs access to physical graphics resources (display?) which are not available in your CGI environment. If that's the case, using the PJA toolkit (http://www.eteks.com/pja/en/) should help. This toolkit can replace the standard AWT libraries, and doesn't need any native graphics resources to do its work. -- Bertrand Delacretaz (codeconsult.ch, jfor.org) buzzwords: XML, java, XSLT, cocoon, mentoring/teaching/coding. disclaimer: eternity is very long. mostly towards the end. get ready. _______________________________________________________________ Don't miss the 2002 Sprint PCS Application Developer's Conference August 25-28 in Las Vegas -- http://devcon.sprintpcs.com/adp/index.cfm