Topic: JavaMail中附件上传的问题 |
Print this page |
1.JavaMail中附件上传的问题 | Copy to clipboard |
Posted by: adelejxsx Posted on: 2003-04-10 17:17 附件上传时用的是Servlet,在本机可以上传 ,但用别的机器访问服务器上传附件时却提示找不到系统路径,不知道为什么? |
2.Re:JavaMail中附件上传的问题 [Re: adelejxsx] | Copy to clipboard |
Posted by: lbluekey Posted on: 2003-04-10 19:04 能不能将错误打印出来看看?我这样做的没有问题呀! |
3.Re:JavaMail中附件上传的问题 [Re: adelejxsx] | Copy to clipboard |
Posted by: adelejxsx Posted on: 2003-04-11 10:46 我的错误信息是JAVAMAIL报的,等 一下我贴出来, 你能否把代码给我一看,感激不尽。 |
4.Re:JavaMail中附件上传的问题 [Re: adelejxsx] | Copy to clipboard |
Posted by: adelejxsx Posted on: 2003-04-11 11:12 javax.mail.SendFailedException: Sending failed; nested exception is: class javax.mail.MessagingException: IOException while sending message; nested exception is: java.io.FileNotFoundException: C:\axis.cmd (系统找不到指定的文件。) |
5.Re:JavaMail中附件上传的问题 [Re: adelejxsx] | Copy to clipboard |
Posted by: lbluekey Posted on: 2003-04-16 22:16
我是使用JspSmartUpload来实现附件上载的哦 |
6.Re:JavaMail中附件上传的问题 [Re: adelejxsx] | Copy to clipboard |
Posted by: adelejxsx Posted on: 2003-04-17 09:57 byte[] fileData = myUpload.getFiles().getFile.getData(); 这行代码中的方法getData()好像没有。我用的也是jspsmartUpload MimeBodyPart mbp = new MimeBodyPart(); mbp.setDataHandler(new javax.activation.DataHandler(new MailDataSource(fileData,"application/x-msdownload"))); 这行代码中的new MailDataSource(fileData,"application/x-msdownload")这个MailDataSource类在哪里哪,我怎么找不到。 -------------------------------------------------------------------------------- • IBM与BEA的比较 |
Powered by Jute Powerful Forum® Version Jute 1.5.6 Ent Copyright © 2002-2021 Cjsdn Team. All Righits Reserved. 闽ICP备05005120号-1 客服电话 18559299278 客服信箱 714923@qq.com 客服QQ 714923 |