Jump to content

Adding Container Image to MimeBodyPart?


This topic is 4408 days old. Please don't post here. Open a new topic instead.

Recommended Posts

Try this:

import javax.mail.*;

import javax.mail.internet.*;

import javax.activation.*;

import javax.mail.util.*;



String src = "Demo::source_container";

InputStream inSrc = fmpro.getContainerStream( src );

DataSource bads = new ByteArrayDataSource ( inSrc, "image/jpeg" );

DataHandler dh = new DataHandler ( bads );



MimeBodyPart mbp = new MimeBodyPart();

mbp.setDataHandler ( dh );

Larry Goldman

Link to comment
Share on other sites

This topic is 4408 days old. Please don't post here. Open a new topic instead.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.