Tutorial :How to embed images in email content using Webservice using java in Netbeans IDE?



Question:

I want a webservice method() coding in java, that should display images in email as content.The user will upload any kind of images and mail it.Now am able to mail text only, problem is images are not displaying in sent email.Please help me out ASAP, because I don't have any knowlege about webservice.


Solution:1

This is a MIME-issue. You should read up on JavaMail to see how you enclose images correctly, and on MIME to see how you refer to them.


Solution:2

Are you getting image on server side or image data on server side? Which web services you are using? If you are getting image as a blob create a image and specify the image URL in email so you can see the image in your email.


Note:If u also have question or solution just comment us below or mail us on toontricks1994@gmail.com
Previous
Next Post »