Jump to content

Tobias Liebhart

Newbies
  • Posts

    2
  • Joined

  • Last visited

Tobias Liebhart's Achievements

Newbie

Newbie (1/14)

  • First Post
  • Week One Done
  • One Month Later
  • One Year In

Recent Badges

0

Reputation

  1. Download Scriptmaster. Create the following Function: Function Name:ContainerToBase64 Parameter:fieldName Function: return new sun.misc.BASE64Encoder().encode( fmpro.getContainerStream( fieldName ).getBytes() ); Then use this function to create a Base64 representation from your Container Field Image. It will look something like this: /9j/4QZKRXhpZgAATU0AKgAAAAgADAEAAAMAAAABAJIAAAEBAAMAAAABANkAAAECAAMAAAADAAAA ngEGAAMAAAABAAIAAA... Replace the "¶” characters with "" Parse the email and replace every image with its Container field representation Replace: <img src="cid:F119C926-4C71-4558-8005-83E1BF95D671"> with: <img src="data:image/png;base64,/9j/4QZKRXhpZgAATU0AKgAAAAgADAEAAA..."> and adapt the image MIME type from image/png to image/jpeg for a jpeg image
  2. I solved this by parsing the Mail for inline image tags and replacing them with a base64 encoded version of the image (using ScriptMaster for Base64 encoding). Takes a bit more space but works fine. You just can't send it back to Outlook (2007+) clients as DataURIs are not supported there.
×
×
  • Create New...

Important Information

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