Thanks, but when I wanna put a image or document .pdf, I used this code:
FooDocument fooDocument = new FooDocument("with image");
Reader fu = new Reader("image.gif");
//*
public Reader(String fileName) throws FileNotFoundException{ constructor
this(new File(fileName));
}
*//
byte [] byteArray = fu.getBytes();
fooDocument.addAttachment("testiagem", new Attachment("image/gif",
byteArray));
and when i get this document, this document is wrong. Anybody know why
occurs this wrong?
--
Rodrigo Mansho
USP - ICMC