<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Upload file to Web API(Mulesoft) using Multipart/form-data in Product Forum</title>
    <link>https://community.blueprism.com/t5/Product-Forum/Upload-file-to-Web-API-Mulesoft-using-Multipart-form-data/m-p/99269#M46850</link>
    <description>Hi, Sireesha,&lt;BR /&gt;&lt;BR /&gt;Blue Prism Web API works well, however, it sends the file in base64 encoded as a string. If the target expects binary format you need to write a custom code stage which does it. If you can download RestSharp.dll and I am attaching VBO which sends the file in binary format to the target.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;I am not sure if this helps in your case but recently I discovered this in my use case and the reason was really that through Web API it is sent as base64 encoded.&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;&lt;BR /&gt;Zdenek</description>
    <pubDate>Thu, 29 Apr 2021 12:37:57 GMT</pubDate>
    <dc:creator>zdenek.kabatek</dc:creator>
    <dc:date>2021-04-29T12:37:57Z</dc:date>
    <item>
      <title>Upload file to Web API(Mulesoft) using Multipart/form-data</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Upload-file-to-Web-API-Mulesoft-using-Multipart-form-data/m-p/99267#M46848</link>
      <description>&lt;SPAN&gt;&lt;SPAN&gt;When trying to upload file(txt,pdf,excel,image etc),&amp;nbsp; the file content is getting corrupted. I tried both template configuration and HTTP VBO as well. Request includes headers and attributes as well .Could you please share the configuration required. Attaching the logs and input form (from api end) for reference.&lt;/SPAN&gt;&lt;/SPAN&gt;
&lt;DIV class="media" style="overflow: hidden"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="36108.png"&gt;&lt;img src="https://community.blueprism.com/t5/image/serverpage/image-id/36114i1E3450E003276BBD/image-size/large?v=v2&amp;amp;px=999" role="button" title="36108.png" alt="36108.png" /&gt;&lt;/span&gt;
&lt;DIV class="media" style="overflow: hidden"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="36109.png"&gt;&lt;img src="https://community.blueprism.com/t5/image/serverpage/image-id/36118iF8BFAE94A4F3FDE5/image-size/large?v=v2&amp;amp;px=999" role="button" title="36109.png" alt="36109.png" /&gt;&lt;/span&gt;&lt;/DIV&gt;
&lt;/DIV&gt;</description>
      <pubDate>Thu, 22 Apr 2021 08:11:31 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Upload-file-to-Web-API-Mulesoft-using-Multipart-form-data/m-p/99267#M46848</guid>
      <dc:creator>SireeshaJaggems</dc:creator>
      <dc:date>2021-04-22T08:11:31Z</dc:date>
    </item>
    <item>
      <title>Re: Upload file to Web API(Mulesoft) using Multipart/form-data</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Upload-file-to-Web-API-Mulesoft-using-Multipart-form-data/m-p/99268#M46849</link>
      <description>I'm not using a VBO for the HTTP call. I'm using the built in WebAPI Configurator in Blue Prism.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;In the object I have the file that I want to upload as a Binary Data Item and I pass that as an input for the webapi action.&lt;BR /&gt;&lt;BR /&gt;
&lt;DIV class="media" style="overflow: hidden"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="36106.jpg"&gt;&lt;img src="https://community.blueprism.com/t5/image/serverpage/image-id/36120iE0CA9D1EF5586A5C/image-size/large?v=v2&amp;amp;px=999" role="button" title="36106.jpg" alt="36106.jpg" /&gt;&lt;/span&gt;&lt;/DIV&gt;
&lt;BR /&gt;The configuration is pretty straight forward. In the headers I've added Content-Type: application/json&lt;BR /&gt;
&lt;DIV class="media" style="overflow: hidden"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="36107.jpg"&gt;&lt;img src="https://community.blueprism.com/t5/image/serverpage/image-id/36121i85175123DFBDF0BA/image-size/large?v=v2&amp;amp;px=999" role="button" title="36107.jpg" alt="36107.jpg" /&gt;&lt;/span&gt;&lt;/DIV&gt;
&lt;BR /&gt;&lt;IMG class="img-responsive" data-mce-hlimagekey="3ceb430c-7a90-75fd-ceb5-6f740376c88f" data-mce-hlselector="#ReplyToContributedContent_d1acf50a-6820-4a58-8f4e-b7efc6284cd6-tinyMce" /&gt;</description>
      <pubDate>Wed, 28 Apr 2021 20:33:56 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Upload-file-to-Web-API-Mulesoft-using-Multipart-form-data/m-p/99268#M46849</guid>
      <dc:creator>AdamGaulding</dc:creator>
      <dc:date>2021-04-28T20:33:56Z</dc:date>
    </item>
    <item>
      <title>Re: Upload file to Web API(Mulesoft) using Multipart/form-data</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Upload-file-to-Web-API-Mulesoft-using-Multipart-form-data/m-p/99269#M46850</link>
      <description>Hi, Sireesha,&lt;BR /&gt;&lt;BR /&gt;Blue Prism Web API works well, however, it sends the file in base64 encoded as a string. If the target expects binary format you need to write a custom code stage which does it. If you can download RestSharp.dll and I am attaching VBO which sends the file in binary format to the target.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;I am not sure if this helps in your case but recently I discovered this in my use case and the reason was really that through Web API it is sent as base64 encoded.&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;&lt;BR /&gt;Zdenek</description>
      <pubDate>Thu, 29 Apr 2021 12:37:57 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Upload-file-to-Web-API-Mulesoft-using-Multipart-form-data/m-p/99269#M46850</guid>
      <dc:creator>zdenek.kabatek</dc:creator>
      <dc:date>2021-04-29T12:37:57Z</dc:date>
    </item>
  </channel>
</rss>

