title: Mule - How to respond after receiving a request collection. (Mule Requester )
body: <p>I am using the Mule Requestor to receive a collection of files via FTP. <br/></p>
  
  <p><a href="https://i.stack.imgur.com/88AYV.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/88AYV.png" alt="Request FTP file collection retrieval"></a></p>
  
  <p>In order to do this with a collection I am using the Collection Splitter which works great.  The only problem is that when I am returning to the HTTP Connector it throws the following exception: </p>
  
  <blockquote>
    <p>java.lang.UnsupportedOperationException: getPayloadAsBytes(), use
    getPayload(DataType.BYTE_ARRAY_DATA_TYPE)</p>
  </blockquote>
  
  <p>I am guessing this has something to do with the payload type that is trying to be inserted into the response, but I am fairly new in the Mule arena.  Any idea what could be causing this and what I should do to resolve the issue?</p>
  
  <p>I have tried setting the payload after the logger, that didn't work.</p>
  
  <p>Code:</p>
  
  <pre><code>&lt;flow name="fileGetter"&gt;     
    &lt;http:listener config-ref="HTTP_Listener_Configuration" path="/test" doc:name="HTTP" allowedMethods="GET"&gt;&lt;/http:listener&gt;
    &lt;mulerequester:request-collection config-ref="Mule_Requester" resource="ftp_For_Requester_Dependent" doc:name="Mule Requester&lt;/mulerequester:request-collection&gt;  
    &lt;collection-splitter doc:name="Collection Splitter"&gt;&lt;/collection-splitter&gt;
    &lt;logger level="INFO" doc:name="Logger" message="#[message.inboundProperties.originalFilename]"&gt;&lt;/logger&gt;  
  &lt;/flow&gt;
  </code></pre>