In my MS Access/VBA application I’m extracting images from email using DXLExporter and adopted code I found via the forums.
I’m finding images in the following tags with success:
Recently I’ve come across images in and can’t make sense of it.
When my users push the button the exported email is written to a file that I can look at but in the file it appears that the image is chunked up. I’ve tried to manually put the pieces back together in hopes of identifying a pattern but no luck.
If they forward me the email (to tell me the image didn’t come out) I can successfully get the image from that email as it appears our server put it all back together in a nice tag.
Is it possible to extract the image from the original email via some other converter or is there truly a pattern that I need to figure out and assemble it myself?
My guess is that it is base64 encoded Composite Data records. If you’re not afraid of the C API, you should be able to figure out exactly which type of CD records it is about by examining the first couple of decoded bytes.
The DXL exporter is able to translate a number of CD structures to something understandeable outside of Notes, but when it stumbles on one it doesn’t know yet, it will just dump the CD structures in the DXL. The only way to decode these is by using the API documentation.
So your choices are:
Wait for the DXL people to implement a translator for that particular CD record.
Dig into the C API, find out which CD record this is about and write your own decoder.
Go talk with someone like Ben Langhinrichs or Normund Kalnberzins who have tackled the Notes Rich Text intricacities and are (hopefully) making good money on it
Personally, I would go for option number 2, but not everyone likes to touch the C API.
I guess I went into this thinking the exporter was “the” exporter for all your DXL needs when in fact it’s just a pretty good exporter. I’m sure I glossed over that fact somewhere
So it sounds like if I was developing inside of Notes then it would probably work okay? That might explain why forwarding the email to yourself (which fixes the issue and gets you some good DXL) works. It plays nice with itself just not outside the Notes domain.