Image processing 从WSO2 ei中的ImageURL获取Base64的方法

Image processing 从WSO2 ei中的ImageURL获取Base64的方法,image-processing,base64,salesforce,wso2ei,Image Processing,Base64,Salesforce,Wso2ei,我有imageURL,我的主要目标是将图像推广到Salesforce。为此,我正在尝试从这个url获取Base64。一旦我得到这个base64,我将尝试使用SFDC的文件概念将base64内容上传到Salesforce 我在从imageURL检索base64时卡住了。有人能帮我吗 仅供参考,代码 <iterate continueParent="true" description="urlIterator" expression="//url" id="listUnread" se

我有imageURL,我的主要目标是将图像推广到Salesforce。为此,我正在尝试从这个url获取Base64。一旦我得到这个base64,我将尝试使用SFDC的文件概念将base64内容上传到Salesforce

我在从imageURL检索base64时卡住了。有人能帮我吗

仅供参考,代码

    <iterate continueParent="true" description="urlIterator" expression="//url" id="listUnread" sequential="true">
                    <target>
                        <sequence>
                            <property description="fileURL" expression="//*[local-name()='url']" name="fileURL" scope="default" type="STRING"/>
     <property description="uri.var.url" expression="get-property('fileURL')" name="uri.var.url" scope="default" type="STRING"/>
                                    <log separator="===Input Image URL===">
                                        <property expression="get-property('fileURL')" name="uri.var.url"/>
                                    </log>
                                    <call>
                                        <endpoint>
                                            <http method="get" uri-template="{uri.var.url}"/>
                                        </endpoint>
                                    </call> 
                                    <log level="full"/>
                   </sequence>
                </target>
      </iterate>

请参考这篇文章,它解释了如何使用Enrich Mediator从URL下载图像,并使用Synapse函数使用WSO2 ESB对图像进行base64编码,谢谢您的回复。尝试了这个方法,效果很好。再次感谢你们的支持
[2019-12-09 12:26:14,762] [] ERROR - Axis2Sender Unexpected error during sending message out
org.apache.axis2.AxisFault: The system cannot infer the transport information from the %3Curl/%3E URL.
        at org.apache.axis2.description.ClientUtils.inferOutTransport(ClientUtils.java:86)
        at org.apache.synapse.core.axis2.DynamicAxisOperation$DynamicOperationClient.executeImpl(DynamicAxisOperation.java:116)