Hello,
I am trying to attach the uploaded file and send it via Mail-Connector. I am getting the following error:
Failed to send mail: class java.io.ByteArrayInputStream cannot be cast to class java.lang.String (java.io.ByteArrayInputStream and java.lang.String are in module java.base of loader ‘bootstrap’)
below is the xml part of the connector.
<bpmn:serviceTask id="Activity_074ea6w" name="send pdf" camunda:asyncBefore="true">
<bpmn:extensionElements>
<camunda:connector>
<camunda:inputOutput>
<camunda:inputParameter name="to">xx@xx.xx</camunda:inputParameter>
<camunda:inputParameter name="subject">x</camunda:inputParameter>
<camunda:inputParameter name="html">x</camunda:inputParameter>
<camunda:inputParameter name="fileNames">
<camunda:list>
<camunda:value>${datei}</camunda:value>
</camunda:list>
</camunda:inputParameter>
</camunda:inputOutput>
<camunda:connectorId>mail-send</camunda:connectorId>
</camunda:connector>
</bpmn:extensionElements>
Does anyone have an idea how to solve the problem?
Thank You.