title: Sending a file to vertx eventbus
body: <p>I'm trying to upload a file using Vertx, the request is a POST request that contains a PDF, my handler looks something like this (I took the code from an example in github):</p>
  
  <pre><code>...
  Set&lt;FileUpload&gt; fileUploadSet = routingContext.fileUploads();
  Iterator&lt;FileUpload&gt; fileUploadIterator = fileUploadSet.iterator();
  while (fileUploadIterator.hasNext()) {
      FileUpload fileUpload = fileUploadIterator.next();
  
      // Use the Event Bus to dispatch the file now
      // Since Event Bus does not support POJOs by default so we need to create a MessageCodec implementation
      // and provide methods for encode and decode the bytes
      ...
  
      vertx.eventBus().&lt;"what to use here?"&gt;send(Address.UPLOAD_FILE, "", result -&gt; {
          if (result.succeeded()) {
              req.response()
                 .setStatusCode(200)
                 .write(result.result().body())
                 .end();
          } else {
              logger.info(result.cause().toString());
              req.response()
                 .setStatusCode(500)
                 .write(result.cause().toString())
                 .end();
          }
      });
  </code></pre>
  
  <p>According to the comment above, I can not just try something like this (it actually shows an error):</p>
  
  <pre><code>vertx.eventBus().&lt;FileUpload&gt;send(Address.UPLOAD_FILE, "", result -&gt; {
  </code></pre>
  
  <p>I have been checking MessageCodec but it's not clear to me how to apply it for this case.</p>
  
  <p>Note: the use of the eventbus is a must for this escenario.</p>