What I am trying to do with an email template is this:
<img alt=”test” src=”data:image/jpeg;base64,[//WorkflowData/PhotoString]” >
As detailed in another forum thread (http://social.technet.microsoft.com/Forums/en-US/ilm2/thread/e674c990-5896-4750-965c-2d34f07987e2) the workflow data item “PhotoString” is a base64 encoded string version of the binary photo in a request, to be emailed to the manager for approval. The base64 conversion is done in a custom workflow extension.
The approval email comes through as part of the workflow, but all I can see in the HTML email generated is the following:
<img alt=”test” src=”” >
This means of course that no picture is displayed in the email!
After much trial and error I have found that whenever a : (colon) is added to the src=”” attribute (unless it is a URL) everything between the quotes is stripped out. For example, if I removed the colon and have...
<img alt=”test” src=”dataimage/jpeg;base64,[//WorkflowData/PhotoString]” >
Then this is returned (shortened for this post)
<img alt="test" src="dataimage/jpeg;base64,/9j/4AAQSkZJRgABAQEBLAEsAAD/..." >
So the question is, what is stripping the data URI out? Is there a parser/regular expression/XSLT somewhere within FIM that would strip this out? Does anyone know?
Is it even possible to get this working how I want? We could get the custom workflow extension to spit out a jpeg image file from the request, to some accessible URL path, but while it would work, it's no where near as tidy.
I have spent quite a bit of time working around nuances within FIM to get this far, only to get shut down at the very last hurdle.
People, I really need your help on this one... many thanks in advance.