dcsimg
Using ".getContent()"
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Lore_Ciccio
Posted On:   Saturday, June 15, 2002 06:34 AM

A MimeBodyPart that contains a text/plain, when i use the "getContent()" method, gives me a String. I use the casting and all works.
I tohught that a MBP that contains an Image (gif or jpeg) gives me an image object, but I have a "ClassCastException" runtime error!

Re: Using ".getContent()"

Posted By:   John_Zukowski  
Posted On:   Thursday, June 20, 2002 09:42 AM

You get the bytes. Treat it as an InputStream to create the Image.
About | Sitemap | Contact