I have an image blob field in mysql and i want to send an email with javamail including this image.

I've used the

ByteArrayDataSource(insImg, "image/jpeg")

to add the InputStream that i have create from the blob but the image in the email is just displayed as binary.

Is there any other way to make it work?

Thanks in advance.