Image and Binary File Conversion
DWR 3.0 features a new FileConverter that handles the following binary files:
- Images (any child of java.awt.BufferedImage)
- InputStreams (any child of java.io.InputStream)
- FileTransfer objects (org.directwebremoting.io.FileTransfer)
In order for upload to work, commons-fileupload and commons-io are required on the classpath. See the commons-upload dependency chart for more information. DWR will give you the error message: "file uploads not supported" if this JAR file is missing.
The DWR war file contains a number of examples of generating PDF files, as well as uploading and downloading images. Full source and explanations are included with these examples.
