dcsimg
please help me with this problem
0 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   weixiazero_weixiazero
Posted On:   Monday, June 17, 2002 12:59 AM

I have atrieve my messages from the server,and then i used MimeMultipart mp=(MimeMultipart)message.getContent(); ByteArrayOutputStream b_out=new ByteArrayOutputStream(); mp.writeTo(b_out); attachment=new byte[b_out.size()]; attachment=b_out.toByteArray(); and then i save the attachment into a database; later i get it out from the database and used attachment=rs.getBytes("attachment"); byteArrayDataSource ds=new byteArrayDataSource(attachment); mpart=new MimeMultipart(ds); after that,i save it in session and used it in a servlet but while i use any method of the mpart there is a javax.mail.internet.ParseException ? can anybody help me?i hope seri   More>>

I have atrieve my messages from the server,and then i used
MimeMultipart mp=(MimeMultipart)message.getContent();
ByteArrayOutputStream b_out=new ByteArrayOutputStream();
mp.writeTo(b_out);
attachment=new byte[b_out.size()];
attachment=b_out.toByteArray();
and then i save the attachment into a database;
later i get it out from the database and used
attachment=rs.getBytes("attachment");
byteArrayDataSource ds=new byteArrayDataSource(attachment);
mpart=new MimeMultipart(ds);
after that,i save it in session and used it in a servlet
but while i use any method of the mpart there is a
javax.mail.internet.ParseException ?
can anybody help me?i hope serious to solve this matter

   <<Less
About | Sitemap | Contact