RE: FormFile to email attachment

2001-10-05 Thread Griffith Ralph
Thanks Michael. MimeBodyPart has a constructor that takes InputStream as a param, so it worked out great. -Original Message- From: SCHACHTER,MICHAEL (HP-NewJersey,ex2) [mailto:[EMAIL PROTECTED]] Sent: Friday, October 05, 2001 11:35 AM To: '[EMAIL PROTECTED]' Subject: RE: F

RE: FormFile to email attachment

2001-10-05 Thread SCHACHTER,MICHAEL (HP-NewJersey,ex2)
Hi, With the default implementation of file upload in Struts, the data is already written to a temporary file. Using the FormFile.getInputStream() method, you can read data from the stream for the temporary file and write it to wherever you need to to make it an attachment. public class EmailAc