Hi Claus,

Thanks for reply.

I also tried following logic (in fact this was first attempt which did not
work) 

                                Set<String> names = in.getAttachmentNames();
                                for (String n : names) {
                                        DataHandler h = in.getAttachment(n);
                                        if (h != null) {
                                                try {
                                                        int read = 0;
                                                        byte[] bytes = new 
byte[1024];
                                                        Object o = 
h.getContent(); 
 
                                                } catch (Exception e) {
                                                        e.printStackTrace();
                                                }
                                        }
                                }
Actually, 'names' Set is empty.  



--
View this message in context: 
http://camel.465427.n5.nabble.com/Multipart-form-data-and-servlet-restlet-endpoint-tp5758948p5758953.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Reply via email to