Skip to Main Content

Java Database Connectivity (JDBC)

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Send E-mail with more then one attachment Blob

533287Jul 20 2007 — edited Jul 24 2007
Hi all,
I d'like to send e-mails with JavaMail with more then one attachment. I obtain the attachments from the database as a Blob. How can i handle this? Other examples i found, working all with files from a physical disc, with a path.

......
Multipart mp = new MimeMultipart();
{
MimeBodyPart mbp = new MimeBodyPart();
mbp.setText("Info");
mp.addBodyPart(mbp);
}
.........
< Database select >

while( rs.next()) {
java.sql.Blob Attachment = rs.getBlob("att");
String Filename = rs.getString("nam");
String Filetype = rs.getString("ext");
.....
??
MimeBodyPart mbp = new MimeBodyPart();
??
.......

}

Please, is somebody here who can help my. Any suggestions are really appreciated. Thank's

Regards Rene
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Aug 21 2007
Added on Jul 20 2007
2 comments
2,372 views