I generate graphs in Flash (with open flash charts) that I convert in a
binary image. Then I send the source in an email but I don’t have the
image in the mail.
The content type of the mail is “text/html”. Do I have to put something
else?
What can I do to have my binary image correctly in my email?
Note that, as mentioned a few times in the above discussion, I don’t
advocate this solution. Whenever I need to do something like this I
provide absolute URLs for my HTML images so the email clients can
retrieve the images from my web server. This does not require embedding
the binary images in the HTML email.
Take note also that that embedding approach may not even work in all
email clients. Also be aware that some HTML email clients are configured
to block rendering of images in HTML email due to security
considerations. Taking advantage of image rendering bugs is a common
exploit for spreading viruses. This is why they are so commonly blocked
as either attachments or tag sources.
I wanted to avoid to save images on the server but it seems I don’t have
the choice.
What do you think if I generate a pdf where I can put my binary images
in it and send the pdf in attachment to the mail. Do you know a ruby
library which accepts binary images ?
Note that, as mentioned a few times in the above discussion, I don’t
advocate this solution. Whenever I need to do something like this I
provide absolute URLs for my HTML images so the email clients can
retrieve the images from my web server. This does not require embedding
the binary images in the HTML email.
Take note also that that embedding approach may not even work in all
email clients. Also be aware that some HTML email clients are configured
to block rendering of images in HTML email due to security
considerations. Taking advantage of image rendering bugs is a common
exploit for spreading viruses. This is why they are so commonly blocked
as either attachments or tag sources.
What do you think if I generate a pdf where I can put my binary images
in it and send the pdf in attachment to the mail. Do you know a ruby
library which accepts binary images ?