DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT <http://nagoya.apache.org/bugzilla/show_bug.cgi?id=21123>. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND INSERTED IN THE BUG DATABASE.
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=21123 Axis Temp File(s) for AttachmentPart ------- Additional Comments From [EMAIL PROTECTED] 2003-06-27 00:11 ------- Thank you Steve for your response. Here's what I'm doing with an AttachmentPart: DataHandler dh = attachmentPart.getActivationDataHandler(); MimeMultipart mmp = (MimeMultipart)dh.getContent(); int count = mmp.getCount(); for (int j = 0; j< count; j++) { BodyPart part = mmp.getBodyPart(j); for (Enumeration headers = part.getAllHeaders(); headers.hasMoreElements);) { Header mh = (Header)headers.nextElement(); System.out.println(mh.getName() + ": " + mh.getValue()); } System.out.println(); DataHandler retDH = part.getDataHandler(); DataSource retDS = retDH.getDataSource(); printDataSource(retDS); System.out.println(); } String tempfilename = dh.getDataSource().getName(); System.out.println("**********************>construct() - temp attachment file name created by Axis: " + tempfilename); Once I'm done with printing out the data source, is there any way I can notify Axis Server that I'm done using Axis and it's time up so go ahead and deleted the temp files Axis generated for each AttachmentPart? Thanks again. KThanh
