i am having some trouble loading an svg file from a linux server.. here is a
snippet of my servlet:
private SVGDocument loadSVGMap(String path) {
String pathOfFile = "file:\\" + path;
System.out.println(pathOfFile);
try {
String parser = XMLResourceDescriptor.getXMLParserClassName();
SAXSVGDocumentFactory f = new SAXSVGDocumentFactory(parser);
return f.createSVGDocument(pathOfFile);
} catch (IOException ex) {
p = pathOfFile;
error = ex.toString();
return null;
}
}
In my own computer (windows xp) i can load the svg file but when i try it on
a linux server (eatj.com), i cannot load the file.. i use the
getServletContext().getRealPath() and i tested it and it does return the
path.. any ideas on how to load a file in a linux server?
--
View this message in context:
http://www.nabble.com/Loading-svg-from-a-linux-server-tp17735305p17735305.html
Sent from the Batik - Users mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]