This is a more HTML based question then iOS-specific but how would you add a local image to an email’s body without having to attach it as an attachment? Is it technically possible?
Thank you very for your answers!
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
The only way to do what you’re asking is by encoding the image as a
data:URI. This includes a Base64-encoded version of your image, which you can use as thesrcof an<img>tag. The URI itself will look something likedata:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQAQMAAAAlPW0iAAAABlBMVEUAAAD///+l2Z/dAAAAM0lEQVR4nGP4/5/h/1+G/58ZDrAz3D/McH8yw83NDDeNGe4Ug9C9zwz3gVLMDA/A6P9/AFGGFyjOXZtQAAAAAElFTkSuQmCC. Note that larger images will have much larger URIs, so this is really only suitable for very small images.