Bill, thanks. > People were having trouble with DataSource.
That was probably me, on the server side. ;-) https://issues.jboss.org/browse/RESTEASY-545 > Instead of Datasource, try using InputStream or some > other media type for the part. DataSource is not a problem here if you use, eg, a javax.activation.FileDataSource, as in the code snippet of my previous post, which works fine. > Also, there is a > @org.jboss.resteasy.annotations.providers.multipart.PartType annotation > that is used to specify the Content-Type of the marshalled Multipart > map, I used that annotation to make it work at all, but this annotation is, of course, not dynamic, so if the client wants to upload files of different media types, you cannot change that dynamically. Also, the annotation is for the entire map and not per entry, so if you tried to upload several files in one request, all the files would have to have the same media type. Jay ------------------------------------------------------------------------------ All of the data generated in your IT infrastructure is seriously valuable. Why? It contains a definitive record of application performance, security threats, fraudulent activity, and more. Splunk takes this data and makes sense of it. IT sense. And common sense. http://p.sf.net/sfu/splunk-d2d-c2 _______________________________________________ Resteasy-users mailing list Resteasy-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/resteasy-users