Hi Marc,
Marc Collin <collinm laboiteaprog.com> wrote on 08/05/2006
09:00:23 PM:
> public void setImgFile(File imgFile) {
> this.imgFile = imgFile;
> }
>
> public void displayImg(){
> svgCanvas.setURI(getImgFile().toString());
The Canvas wants a URI/URL not a local file system
reference
so you should use the 'FILE.toURL().toString()'
> java.io.IOException: Unable to make sense of URL for
connection
------------------------------------------------------------
---------
To unsubscribe, e-mail: batik-users-unsubscribe xmlgraphics.apache.org
For additional commands, e-mail: batik-users-help xmlgraphics.apache.org
|