Jeremias,

thanks a lot for your input.

1.
I set it into LEVEL_DEBUG and checked the console. It
looks like it is image url path setting's problem.
What does that mean by "no base directory is
specified"?  I am wondering if the way or syntax I use
to set Image url vriable is right. The detailed
console info is as followed:

[INFO] building formatting object tree
[DEBUG] setting up fonts [INFO] [1]
[ERROR] Error while creating area : Error with image
URL:  (The system cannot find the path specified) and
no base directory is specified
[DEBUG] Last page-sequence produced 1 pages.
[INFO] Parsing of document complete, stopping renderer
[DEBUG] Initial heap size: 30061Kb
[DEBUG] Current heap size: 35273Kb
[DEBUG] Total memory used: 5212Kb
[DEBUG]   Memory use is indicative; no GC was
performed
[DEBUG]   These figures should not be used
comparatively
[DEBUG] Total time used: 741ms
[DEBUG] Pages rendered: 1
[DEBUG] Avg render time: 741ms/page

2.
> It also helps if you just do the XSLT transformation
> on the command line
> (as I suggested earlier). By checking the generated
> FO afterwards you
> can see if everything is alright.

Sorry I am not sure how to use XSLT to test it from
command line.

3.
If I ran GetByteStream servlet, it can display the
image in tiff format. You mentioned this servlet
should write the TIFF file byte by byte to
the Request's OutputStream. Can you take a look to if
I did right?

public class GetByteStream extends HttpServlet {
   ...
 private void sendBinaryResponse(HttpServletResponse
res,
                                  HttpServletRequest
req, byte[] bt,
                                  String
sContTypeHeader,
                                  String
sEncodingHeader, String encoding) {
                                        
                
  
    res.addHeader("Expires", "Wed, 26 Feb 1970
08:21:57 GMT");
    res.addHeader("Cache-Control", "no-cache");

    //set content type to image/tiff
    res.setContentType(sContTypeHeader);
    try {
      OutputStream out = null;
        res.setContentType(sContTypeHeader);

      
              if (sEncodingHeader != null) {
          res.setHeader("Content-Encoding",
sEncodingHeader);
        }
        res.setContentLength(bt.length);
        out = res.getOutputStream();
          
        out.write(bt);
     
      out.flush();
      out.close();
    }
    catch (Throwable e) {}
  }

  ...

}




__________________________________
Do you Yahoo!?
Yahoo! Small Business $15K Web Design Giveaway 
http://promotions.yahoo.com/design_giveaway/

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to