Hi, Follow this thread:
http://groups.google.com/group/google-appengine-java/browse_thread/thread/b49ff7e581723dab/868085ecbe2bc826#868085ecbe2bc826 http://groups.google.com/group/google-appengine-java/browse_thread/thread/e6a23e509e7d43c9/4ba5eeb4573731dd?lnk=gst&q=seleronM#4ba5eeb4573731dd Though something only has to be able to be useful. thanks. On 11ζ30ζ₯, εεΎ11:34, Peter Ondruska <peter.ondru...@gmail.com> wrote: > I am following instructions > onhttp://code.google.com/appengine/docs/java/mail/receiving.html > to process incoming mail but failing on retrieving content (headers > are fine). > > "The getContent() method returns an object that implements the > Multipart interface. You can then call getCount() to determine the > number of parts and getBodyPart(int index) to return a particular body > part." > > MimeMultipart mmp = (MimeMultipart) message.getContent(); > > Error: > java.lang.ClassCastException: java.io.ByteArrayInputStream cannot be > cast to javax.mail.internet.MimeMultipart > > And when I check at runtime what class is returned by getContent() it > really is java.io.ByteArrayInputStream. > > Am I doing something wrong? -- You received this message because you are subscribed to the Google Groups "Google App Engine for Java" group. To post to this group, send email to google-appengine-j...@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en.