I haven't used jspSmartUpload, but you can certainly avoid writing then reading a file by using a ByteArrayOutputStream; write the uploaded file (that's already in an in-memory buffer) to a ByteArrayOutputStream, then use that stream's "toByteArray()" method in the constructor of a ByteArrayInputStream (this is what we had to do using O'Reilly's upload tools, anyway).
Where do I find more about jspSmartUpload? Regards, Al Tingley -----Original Message----- From: Jason Webber [mailto:[EMAIL PROTECTED]] Sent: Monday, March 18, 2002 5:05 PM To: [EMAIL PROTECTED] Subject: Upload file to email as attachment Right now I finally got the file uploading to work properly using jspSmartUpload. Now I need to have my servlet send an email with the file as an attachment. I believe I wont have a problem saving the file to disk and then attaching it to an email. However saving it to disk just to reread from the disk to send as an attachment seems wasteful. The files are only about 30-50kb. Has anyone done this or is there even a better way to do this using somethign other than jspSmartUpload? TIA -- To unsubscribe: <mailto:[EMAIL PROTECTED]> For additional commands: <mailto:[EMAIL PROTECTED]> Troubles with the list: <mailto:[EMAIL PROTECTED]> -- To unsubscribe: <mailto:[EMAIL PROTECTED]> For additional commands: <mailto:[EMAIL PROTECTED]> Troubles with the list: <mailto:[EMAIL PROTECTED]>