[EMAIL PROTECTED] wrote: > I'm trying to save in a file my svg using the DOMUtilities.writeDocument but > the > svg is full or partially troncated. what's wrong whith my svg ? have you got > another way to do this job ? > > here is the piece of code to write in the file > Writer writer = null; > try { > writer = new PrintWriter(new > FileOutputStream("myXML.txt")); > } catch (FileNotFoundException e2) { > e2.printStackTrace(); > } > try { > > DOMUtilities.writeDocument(canvas.getUpdateManager().getDocument(),writer); > } catch (IOException e1) { > e1.printStackTrace(); > } > > the piece of my svg file is attached
Dumb question... are you calling "writer.close()" to force flushing the output? -Archie __________________________________________________________________________ Archie Cobbs * CTO, Awarix * http://www.awarix.com * Confidentiality Notice: This e-mail message, including any attachments, is for the sole use of the intended recipient(s) and may contain confidential and privileged information. Any unauthorized review, use, disclosure or distribution is prohibited. If you are not the intended recipient, please contact the sender by reply e-mail and destroy all copies of the original message. * --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]