I am not sure I understand you correctly, so let me make my answer conditional to the presumption:
Presumption
You are generating this HTML which will be sent as an attachment in an email. The attached HTML is required to contain image(s).
Treasure Hunt Clue
Using the image tag to give path to the image file will not work, because when the recipient of the email will open the HTML, the image path wouldn’t be found. To achieve this, you will have to create mime object for image and populate the contents of this mime with data of the image. Then in your HTML you will have to give the id of this mime object as img src. Effectively, you are embedding the image.
Alternatively, you can host the image at a location that is accessible to the recipient of the email without requiring a userid/password and then use the absolute path of the image in your html.
I have used this approach in the past - can’t recall the exact steps right now… but this should give you a direction.
~Rohit
#Flow-and-Java-services#Integration-Server-and-ESB#webMethods