Ruben,

does Graphviz leave the images in a path that is "visible" from the
document root? In that case, you could do as simple as

<img jwcid="@Any" src="ognl:pathToImage"/>

and in the .java 

public String getPathToImage() {
   // determine the path to the image reading other environment parameters 
  // (visit, properties, etc)
  return path;
}

If Graphviz can give you and OutputStream (so you would, in a servlet
environment, simply use <img src="graphvizServlet?param1=value1&"> and
so on), then your getPathToImage would instead build the URL and just
return it to the <img> tag...

Hope it helps,

Dario


On 9/8/05, rverlind <[EMAIL PROTECTED]> wrote:
> Is there any possibility I could show an image coming from an
> InputStream using Tapestry?
> 
> The server needs to access Graphviz ( http://www.graphiz.org ) using JNI
> to create image files from a graph description. The output image from
> Graphviz is saved as a file (can't use a fixed file name, can be 1 - n
> files, etc.) on the HD. Afterwards this images must then be shown in the
> web page.
> 
> Can anybody give me a hint on a) how to show images in a web page using
> an InputStream (from the file on the HD) or b) an alternative way to
> show these images?
> 
> 
> 
> kind regards,
> Ruben
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 


-- 
I have enough money to last me the rest of my life, unless I buy something.
    Jackie Mason

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

Reply via email to