<?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>Question Re: File Attachment using gateway in Technology Q&amp;A</title>
    <link>https://community.sap.com/t5/technology-q-a/file-attachment-using-gateway/qaa-p/9144594#M3245293</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jibin&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As an example of how to call GET_STREAM for a carrier&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;call the following to get the entity&lt;/P&gt;&lt;P&gt;&lt;A class="jive-link-external-small" href="http://serverport"&gt;http://server:port/sap/opu/odata/IWFND/RMTSAMPLEFLIGHT/CarrierCollection('AA&lt;/A&gt;&lt;SPAN&gt;')&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in&amp;nbsp; the payload you will see a couple of links&lt;/P&gt;&lt;P&gt;&lt;SPAN class="m"&gt;&amp;lt;&lt;/SPAN&gt;&lt;SPAN class="t"&gt;link&lt;/SPAN&gt; &lt;SPAN class="t"&gt;href&lt;/SPAN&gt;&lt;SPAN class="m"&gt;="&lt;/SPAN&gt;&lt;STRONG&gt;CarrierCollection('AA')/$value&lt;/STRONG&gt;&lt;SPAN class="m"&gt;"&lt;/SPAN&gt;&lt;SPAN class="t"&gt; rel&lt;/SPAN&gt;&lt;SPAN class="m"&gt;="&lt;/SPAN&gt;&lt;STRONG&gt;edit-media&lt;/STRONG&gt;&lt;SPAN class="m"&gt;"&lt;/SPAN&gt;&lt;SPAN class="t"&gt; type&lt;/SPAN&gt;&lt;SPAN class="m"&gt;="&lt;/SPAN&gt;&lt;STRONG&gt;image/gif&lt;/STRONG&gt;&lt;SPAN class="m"&gt;"&lt;/SPAN&gt;&lt;SPAN class="m"&gt; /&amp;gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="m"&gt;&amp;lt;&lt;/SPAN&gt;&lt;SPAN class="t"&gt;content&lt;/SPAN&gt; &lt;SPAN class="t"&gt;type&lt;/SPAN&gt;&lt;SPAN class="m"&gt;="&lt;/SPAN&gt;&lt;STRONG&gt;image/gif&lt;/STRONG&gt;&lt;SPAN class="m"&gt;"&lt;/SPAN&gt;&lt;SPAN class="t"&gt; src&lt;/SPAN&gt;&lt;SPAN class="m"&gt;="&lt;/SPAN&gt;&lt;STRONG&gt;CarrierCollection('AA')/$value&lt;/STRONG&gt;&lt;SPAN class="m"&gt;"&lt;/SPAN&gt;&lt;SPAN class="m"&gt; /&amp;gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; if you do a GET &lt;/P&gt;&lt;P&gt;/sap/opu/odata/IWFND/RMTSAMPLEFLIGHT/CarrierCollection('AA')/$value&lt;/P&gt;&lt;P&gt;set header accept = image/gif&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you should see that GET_STREAM is called.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;likewise if you do a PUT on&lt;/P&gt;&lt;P&gt;/sap/opu/odata/IWFND/RMTSAMPLEFLIGHT/CarrierCollection('AA')/$value&lt;/P&gt;&lt;P&gt;set header content-type&amp;nbsp; = image/gif&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you should be able to update the image calling UPDATE_STREAM&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;**first you need to setup a default virus profile&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;UPDATE: &lt;/P&gt;&lt;P&gt;Transaction /IWFND/VIRUS_SCAN here you can set or turn off Virus Scan &lt;/P&gt;&lt;P&gt;Also attached screen shot for CREATE_STREAM for Carrier, need to call the collection with the right headers and a slug&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;&lt;P&gt;JSP&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 08 Nov 2012 09:46:42 GMT</pubDate>
    <dc:creator>former_member182048</dc:creator>
    <dc:date>2012-11-08T09:46:42Z</dc:date>
    <item>
      <title>File Attachment using gateway</title>
      <link>https://community.sap.com/t5/technology-q-a/file-attachment-using-gateway/qaq-p/9144590</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Everyone,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; New scenario: uploading and downloading file using SAP Netweaver Gateway . &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Dont know how to solve this&amp;nbsp; one .&lt;/P&gt;&lt;P&gt;I like to have ur valuable suggestion and Advice for this requirement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in Advance,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Jibin JOy &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Nov 2012 16:02:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/file-attachment-using-gateway/qaq-p/9144590</guid>
      <dc:creator>jibin_joy</dc:creator>
      <dc:date>2012-11-06T16:02:51Z</dc:date>
    </item>
    <item>
      <title>Re: File Attachment using gateway</title>
      <link>https://community.sap.com/t5/technology-q-a/file-attachment-using-gateway/qaa-p/9144591#M3245290</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have the same question and I am looking forward someone could give some hints on this.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Nov 2012 00:57:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/file-attachment-using-gateway/qaa-p/9144591#M3245290</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-11-08T00:57:04Z</dc:date>
    </item>
    <item>
      <title>Re: File Attachment using gateway</title>
      <link>https://community.sap.com/t5/technology-q-a/file-attachment-using-gateway/qaa-p/9144592#M3245291</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jibin / Jessie&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TLDR The answer depends on the requirement.&amp;nbsp; There are a few ways I can think of to achieve Uploading and Downloading files with Gateway services. The most efficient way is to provide URL links to the file content, then have separate client calls stream the data to and from the server via the Gateway service or maintain the data by methods independent of the Gateway service .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The OData protocol enables you to define data feeds that also make binary large object (BLOB) data, such as photos, videos, and documents available to client applications that consume the OData feeds. For performance reasons it is not good practice to return the BLOB's in the feed themselves, rather call the Binary Data, known as a Media Resource separately via a Media Link Entry present in the feed. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;eg.&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #424242; font-family: 'Courier New'; font-size: x-small; background-color: #ffffff;"&gt;&amp;lt;content type="image/jpeg" src="EmployeePhoto(4)/$value" /&amp;gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #424242; font-size: x-small; background-color: #ffffff; font-family: 'Courier New';"&gt;&amp;lt;link rel="edit-media" title="EmployeePhoto" href="EmployeePhoto(4)/$value" /&amp;gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;or&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #424242; font-family: 'Courier New'; font-size: x-small; background-color: #ffffff;"&gt;&amp;lt;content type="image/jpeg" src="&lt;A href="http://www.linkedin.com/" title="http://www.linkedin.com/"&gt;http://www.linkedin.com/&lt;/A&gt;profilephotos/xyz.jpg" /&amp;gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example of using Media Links to retrieve Workflow attachments. &lt;A href="http://help.sap.com/saphelp_gateway20sp02/helpdata/en/95/9ccb3c857740af8318b3cdf67f00b6/frameset.htm" target="_blank"&gt;Workflow Services -&amp;gt; Media Links&lt;/A&gt; - see &lt;/P&gt;&lt;P&gt;DPC: /IWWRK/CL_MGW_RT_WORKFLOW&lt;/P&gt;&lt;P&gt;MPC: /IWWRK/CL_MGW_MED_WORKFLOW&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you have access to the the Electronic Medical Record Gateway services you can see both how to use both Media Links and Binary fields in the feed&lt;/P&gt;&lt;P&gt;/MEMR/CL_ET_ATTACHMENT_HANDLER&lt;/P&gt;&lt;P&gt;/MEMR/CL_ET_DOCUMENT_HANDLER&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To support streaming in Gateway services,the DPC has the following methods :&lt;/P&gt;&lt;P&gt;/IWBEP/IF_MGW_APPL_SRV_RUNTIME~CREATE_STREAM&lt;/P&gt;&lt;P&gt;/IWBEP/IF_MGW_APPL_SRV_RUNTIME~GET_STREAM&lt;/P&gt;&lt;P&gt;/IWBEP/IF_MGW_APPL_SRV_RUNTIME~UPDATE_ENTITY&lt;/P&gt;&lt;P&gt;/IWBEP/IF_MGW_APPL_SRV_RUNTIME~DELETE_STREAM&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The first half of this document explains how it should work &lt;A href="http://www.odata.org/blog/2010/10/18/enhancing-odata-support-for-streams"&gt;OData support for streams&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The only full CRUD example i could find is&lt;/P&gt;&lt;P&gt;/IWBEP/CL_MGW_RT_SFLIGHT local class LCL_CARRIER-&amp;gt;Create/Update/Delete_Stream, however this code doesn't seem active or recent.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it helps.&lt;/P&gt;&lt;P&gt;Cheers &lt;/P&gt;&lt;P&gt;John P &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Nov 2012 05:55:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/file-attachment-using-gateway/qaa-p/9144592#M3245291</guid>
      <dc:creator>former_member182048</dc:creator>
      <dc:date>2012-11-08T05:55:45Z</dc:date>
    </item>
    <item>
      <title>Re: File Attachment using gateway</title>
      <link>https://community.sap.com/t5/technology-q-a/file-attachment-using-gateway/qaa-p/9144593#M3245292</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi John,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-size: 12px; background-color: #ffffff;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; How /IWBEP/IF_MGW_APPL_SRV_RUNTIME~GET_STREAM method is invoked I mean can u provide me the sample url to invoke this method.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-size: 12px; background-color: #ffffff;"&gt;Thanks,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-size: 12px; background-color: #ffffff;"&gt;Jibin Joy &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Nov 2012 07:43:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/file-attachment-using-gateway/qaa-p/9144593#M3245292</guid>
      <dc:creator>jibin_joy</dc:creator>
      <dc:date>2012-11-08T07:43:38Z</dc:date>
    </item>
    <item>
      <title>Re: File Attachment using gateway</title>
      <link>https://community.sap.com/t5/technology-q-a/file-attachment-using-gateway/qaa-p/9144594#M3245293</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jibin&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As an example of how to call GET_STREAM for a carrier&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;call the following to get the entity&lt;/P&gt;&lt;P&gt;&lt;A class="jive-link-external-small" href="http://serverport"&gt;http://server:port/sap/opu/odata/IWFND/RMTSAMPLEFLIGHT/CarrierCollection('AA&lt;/A&gt;&lt;SPAN&gt;')&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in&amp;nbsp; the payload you will see a couple of links&lt;/P&gt;&lt;P&gt;&lt;SPAN class="m"&gt;&amp;lt;&lt;/SPAN&gt;&lt;SPAN class="t"&gt;link&lt;/SPAN&gt; &lt;SPAN class="t"&gt;href&lt;/SPAN&gt;&lt;SPAN class="m"&gt;="&lt;/SPAN&gt;&lt;STRONG&gt;CarrierCollection('AA')/$value&lt;/STRONG&gt;&lt;SPAN class="m"&gt;"&lt;/SPAN&gt;&lt;SPAN class="t"&gt; rel&lt;/SPAN&gt;&lt;SPAN class="m"&gt;="&lt;/SPAN&gt;&lt;STRONG&gt;edit-media&lt;/STRONG&gt;&lt;SPAN class="m"&gt;"&lt;/SPAN&gt;&lt;SPAN class="t"&gt; type&lt;/SPAN&gt;&lt;SPAN class="m"&gt;="&lt;/SPAN&gt;&lt;STRONG&gt;image/gif&lt;/STRONG&gt;&lt;SPAN class="m"&gt;"&lt;/SPAN&gt;&lt;SPAN class="m"&gt; /&amp;gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="m"&gt;&amp;lt;&lt;/SPAN&gt;&lt;SPAN class="t"&gt;content&lt;/SPAN&gt; &lt;SPAN class="t"&gt;type&lt;/SPAN&gt;&lt;SPAN class="m"&gt;="&lt;/SPAN&gt;&lt;STRONG&gt;image/gif&lt;/STRONG&gt;&lt;SPAN class="m"&gt;"&lt;/SPAN&gt;&lt;SPAN class="t"&gt; src&lt;/SPAN&gt;&lt;SPAN class="m"&gt;="&lt;/SPAN&gt;&lt;STRONG&gt;CarrierCollection('AA')/$value&lt;/STRONG&gt;&lt;SPAN class="m"&gt;"&lt;/SPAN&gt;&lt;SPAN class="m"&gt; /&amp;gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; if you do a GET &lt;/P&gt;&lt;P&gt;/sap/opu/odata/IWFND/RMTSAMPLEFLIGHT/CarrierCollection('AA')/$value&lt;/P&gt;&lt;P&gt;set header accept = image/gif&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you should see that GET_STREAM is called.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;likewise if you do a PUT on&lt;/P&gt;&lt;P&gt;/sap/opu/odata/IWFND/RMTSAMPLEFLIGHT/CarrierCollection('AA')/$value&lt;/P&gt;&lt;P&gt;set header content-type&amp;nbsp; = image/gif&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you should be able to update the image calling UPDATE_STREAM&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;**first you need to setup a default virus profile&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;UPDATE: &lt;/P&gt;&lt;P&gt;Transaction /IWFND/VIRUS_SCAN here you can set or turn off Virus Scan &lt;/P&gt;&lt;P&gt;Also attached screen shot for CREATE_STREAM for Carrier, need to call the collection with the right headers and a slug&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;&lt;P&gt;JSP&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Nov 2012 09:46:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/file-attachment-using-gateway/qaa-p/9144594#M3245293</guid>
      <dc:creator>former_member182048</dc:creator>
      <dc:date>2012-11-08T09:46:42Z</dc:date>
    </item>
    <item>
      <title>Re: File Attachment using gateway</title>
      <link>https://community.sap.com/t5/technology-q-a/file-attachment-using-gateway/qaa-p/9144595#M3245294</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi John,&lt;/P&gt;&lt;P&gt;&amp;nbsp; It was very helpful info . It's working properly .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But i am facing some pblm during SEGW class generation .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Currently using SAP Netwear Gateway SP5&lt;/P&gt;&lt;P&gt; based on the document&amp;nbsp; &lt;A href="http://help.sap.com/saphelp_gateway20sp04/helpdata/en/67/d2c38221984d8eb46b8a8d983407b9/content.htm"&gt;http://help.sap.com/saphelp_gateway20sp04/helpdata/en/67/d2c38221984d8eb46b8a8d983407b9/content.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/jiveimages/154899" width="450" /&gt;&lt;/P&gt;&lt;P&gt;for media type setting&amp;nbsp; &lt;/P&gt;&lt;P&gt;* setting a data object as media type means that it gets a special semantic by having a url and allows streaming etc.&lt;/P&gt;&lt;P&gt;&amp;nbsp; lo_data_object-&amp;gt;set_is_media( ).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/jiveimages/154903" width="450" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for mime type information setting&lt;/P&gt;&lt;P&gt;* must be set when data object is a media type to mark the property which represents the mime type information&lt;/P&gt;&lt;P&gt;&amp;nbsp; lo_property-&amp;gt;set_fc_target_path( iv_keep_in_content = abap_true iv_fc_target_path = gcs_fc_target_path - content/@type ).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but during generating run-time object&amp;nbsp; the above code is not generate.&lt;/P&gt;&lt;P&gt;for running i manually added above code in generated class&amp;nbsp;&amp;nbsp; .&lt;/P&gt;&lt;P&gt;I need ur valuable suggestion to resolve this pblm.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Jibin Joy&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Nov 2012 07:10:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/file-attachment-using-gateway/qaa-p/9144595#M3245294</guid>
      <dc:creator>jibin_joy</dc:creator>
      <dc:date>2012-11-09T07:10:58Z</dc:date>
    </item>
    <item>
      <title>Re: File Attachment using gateway</title>
      <link>https://community.sap.com/t5/technology-q-a/file-attachment-using-gateway/qaa-p/9144596#M3245295</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jibin&lt;/P&gt;&lt;P&gt;Thanks for the link to the Media Link help document, I never saw that before, could have save me a lot of time attempting to write something similar.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am using a SP4 system and the Gateway builder doesn't have some of the features shown in your screenshots. Given you are on SP5 suggests you are a customer and entitled to raise an OSS note, you could either live the workaround or raise a Note.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;&lt;P&gt;John P&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Nov 2012 09:11:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/file-attachment-using-gateway/qaa-p/9144596#M3245295</guid>
      <dc:creator>former_member182048</dc:creator>
      <dc:date>2012-11-09T09:11:38Z</dc:date>
    </item>
    <item>
      <title>Re: File Attachment using gateway</title>
      <link>https://community.sap.com/t5/technology-q-a/file-attachment-using-gateway/qaa-p/9144597#M3245296</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi John,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Do u know how to set the filename since wht were file we are downloading will have same name "$value" but i want my file name like doc1.doc so that it will be more flexible to open that downloaded files&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in Advance,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Jibin Joy&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Nov 2012 07:28:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/file-attachment-using-gateway/qaa-p/9144597#M3245296</guid>
      <dc:creator>jibin_joy</dc:creator>
      <dc:date>2012-11-14T07:28:31Z</dc:date>
    </item>
    <item>
      <title>Re: File Attachment using gateway</title>
      <link>https://community.sap.com/t5/technology-q-a/file-attachment-using-gateway/qaa-p/9144598#M3245297</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi John,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For setting up the file name .&lt;/P&gt;&lt;P&gt;we have to manually add one header content&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S52"&gt;&amp;nbsp;&amp;nbsp; DATA &lt;/SPAN&gt;ls_temp &lt;SPAN class="L0S52"&gt;TYPE &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;LINE &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;OF&amp;nbsp; &lt;/SPAN&gt;tihttpnvp.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ls_temp-name = &lt;SPAN class="L0S33"&gt;'Content-Disposition'&lt;/SPAN&gt;.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ls_temp-value = &lt;SPAN class="L0S33"&gt;'inline; filename="doc2.doc"'&lt;/SPAN&gt;.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S52"&gt;APPEND &lt;/SPAN&gt;ls_temp &lt;SPAN class="L0S52"&gt;TO &lt;/SPAN&gt;ct_headers.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Plz Ref &lt;A href="http://www.ietf.org/rfc/rfc1806.txt" title="http://www.ietf.org/rfc/rfc1806.txt"&gt;http://www.ietf.org/rfc/rfc1806.txt&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Jibin Joy&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Nov 2012 10:16:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/file-attachment-using-gateway/qaa-p/9144598#M3245297</guid>
      <dc:creator>jibin_joy</dc:creator>
      <dc:date>2012-11-14T10:16:33Z</dc:date>
    </item>
    <item>
      <title>Re: File Attachment using gateway</title>
      <link>https://community.sap.com/t5/technology-q-a/file-attachment-using-gateway/qaa-p/9144599#M3245298</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thanks will try.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Nov 2012 12:33:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/file-attachment-using-gateway/qaa-p/9144599#M3245298</guid>
      <dc:creator>former_member182048</dc:creator>
      <dc:date>2012-11-14T12:33:04Z</dc:date>
    </item>
    <item>
      <title>Re: File Attachment using gateway</title>
      <link>https://community.sap.com/t5/technology-q-a/file-attachment-using-gateway/qaa-p/9144600#M3245299</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi John,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For ur Future ref..........&lt;/P&gt;&lt;P&gt;Based on my observation the following might be a problem for streaming and i dont know whether it is right or not . just try it whenever got&amp;nbsp; time.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. Create Stream&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Request Body : &lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Consolas, 'Lucida Console', monospace; font-size: 12px; background-color: #ffffff;"&gt;------WebKitFormBoundary2BKGSHLTKayEh8qt &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Consolas, 'Lucida Console', monospace; font-size: 12px; background-color: #ffffff;"&gt;Content-Disposition: form-data; name="fileUpload"; filename="text1.txt" &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Consolas, 'Lucida Console', monospace; font-size: 12px; background-color: #ffffff;"&gt;Content-Type: text/plain&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-----file stream data ----&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Consolas, 'Lucida Console', monospace; font-size: 12px; background-color: #ffffff;"&gt;------WebKitFormBoundary2BKGSHLTKayEh8qt--&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-size: 12px; background-color: #ffffff; font-family: Consolas, 'Lucida Console', monospace;"&gt;In create stream method, &lt;SPAN style="color: #000000; font-family: Consolas, 'Lucida Console', monospace; font-size: 12px; background-color: #ffffff;"&gt;file stream data&lt;/SPAN&gt; is not properly fetched ....&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-size: 12px; background-color: #ffffff; font-family: Consolas, 'Lucida Console', monospace;"&gt;If u observe media resource variable in method , will contain all the data from&amp;nbsp; top to bottom (including &lt;SPAN style="color: #000000; font-family: Consolas, 'Lucida Console', monospace; font-size: 12px; background-color: #ffffff;"&gt;------WebKitFormBoundary2BKGSHLTKayEh8qt&lt;/SPAN&gt; ......... ) as shown above .&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-size: 12px; background-color: #ffffff; font-family: Consolas, 'Lucida Console', monospace;"&gt;and dont know show to fetch the uploaded file name also.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-size: 12px; background-color: #ffffff; font-family: Consolas, 'Lucida Console', monospace;"&gt;2. Update Stream &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Throws an error for update stream&lt;/P&gt;&lt;P&gt;Error :&lt;/P&gt;&lt;P class="yui_3_7_2_17_1351598878397_49" id="yiv1504289138yui_3_7_2_17_1353045744173_39" style="color: #000000; font-size: 10pt;"&gt;&lt;SPAN class="yui_3_7_2_17_1351598878397_50" id="yiv1504289138yui_3_7_2_17_1353045744173_52" style="font-family: monospace;"&gt;" The server is refusing to process the request because the entity has a unsupported format " &lt;/SPAN&gt;&lt;BR id="yiv1504289138yui_3_7_2_17_1353045744173_154" /&gt;&lt;/P&gt;&lt;P class="yui_3_7_2_17_1351598878397_51" id="yiv1504289138yui_3_7_2_17_1353045744173_39"&gt;&lt;/P&gt;&lt;P class="yui_3_7_2_17_1351598878397_51" style="color: #000000;"&gt;&lt;SPAN class="yui_3_7_2_17_1351598878397_52" style="font-family: monospace;"&gt;Class&amp;nbsp;&amp;nbsp; : &lt;SPAN style="color: #000000; font-family: monospace;"&gt;/IWCOR/CL_DS_PROC_DISPATCHER&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="yui_3_7_2_17_1351598878397_51" style="color: #000000;"&gt;&lt;SPAN style="color: #000000; font-family: monospace;"&gt;Method&amp;nbsp; : &lt;SPAN style="color: #000000; font-family: monospace;"&gt;PROCESS_ENTITY &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="yui_3_7_2_17_1351598878397_51"&gt;&lt;/P&gt;&lt;P class="yui_3_7_2_17_1351598878397_51" style="color: #000000;"&gt;&lt;SPAN style="color: #000000; font-family: monospace;"&gt;Content :&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="yui_3_7_2_17_1351598878397_53" id="yiv1504289138yui_3_7_2_17_1353045744173_39" style="font-family: monospace; color: #000000;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; .&lt;/P&gt;&lt;P class="yui_3_7_2_17_1351598878397_53" style="font-family: monospace; color: #000000;"&gt;&lt;SPAN style="color: #000000; font-family: monospace;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; .&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="yui_3_7_2_17_1351598878397_53" style="font-family: monospace; color: #000000;"&gt;&lt;SPAN style="color: #000000; font-family: monospace;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; .&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="yui_3_7_2_17_1351598878397_53" style="font-family: monospace; color: #000000;"&gt;&lt;SPAN style="color: #000000; font-family: monospace;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; .&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="yui_3_7_2_17_1351598878397_53" style="font-family: monospace; color: #000000;"&gt;&lt;SPAN style="color: #000000; font-family: monospace;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; .&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="yui_3_7_2_17_1351598878397_53" style="font-family: monospace; color: #000000;"&gt;&lt;SPAN style="color: #000000; font-family: monospace;"&gt;&lt;SPAN style="color: #000000; font-family: monospace;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; .&lt;/SPAN&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="yui_3_7_2_17_1351598878397_53" style="font-family: monospace; color: #000000;"&gt;&amp;nbsp; validate_content_type(&lt;/P&gt;&lt;P class="yui_3_7_2_17_1351598878397_55" id="yiv1504289138yui_3_7_2_17_1353045744173_39" style="font-family: monospace; color: #000000;"&gt;&lt;SPAN class="yui_3_7_2_17_1351598878397_56" id="yiv1504289138yui_3_7_2_17_1353045744173_66"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; it_supported_format = lt_supported_format&lt;BR id="yiv1504289138yui_3_7_2_17_1353045744173_73" /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; iv_content_type = io_request_entity-&amp;gt;get_header_field( if_http_header_fields=&amp;gt;content_type )&amp;nbsp; ). &lt;/SPAN&gt;&lt;/P&gt;&lt;P class="yui_3_7_2_17_1351598878397_57" id="yiv1504289138yui_3_7_2_17_1353045744173_39" style="font-family: monospace; color: #000000;"&gt;&lt;SPAN style="color: #000000; font-family: monospace;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; .&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="yui_3_7_2_17_1351598878397_57" style="font-family: monospace; color: #000000;"&gt;&lt;SPAN style="color: #000000; font-family: monospace;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; .&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="yui_3_7_2_17_1351598878397_57" style="font-family: monospace; color: #000000;"&gt;&lt;SPAN style="color: #000000; font-family: monospace;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; .&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="yui_3_7_2_17_1351598878397_57" style="font-family: monospace; color: #000000;"&gt;&lt;SPAN style="color: #000000; font-family: monospace;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; .&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="yui_3_7_2_17_1351598878397_57" style="font-family: monospace; color: #000000;"&gt;&lt;SPAN style="color: #000000; font-family: monospace;"&gt;&lt;SPAN style="color: #000000; font-family: monospace;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; .&lt;/SPAN&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="yui_3_7_2_17_1351598878397_59" id="yiv1504289138yui_3_7_2_17_1353045744173_39"&gt;&lt;/P&gt;&lt;P class="yui_3_7_2_17_1351598878397_59"&gt;&lt;/P&gt;&lt;P class="yui_3_7_2_17_1351598878397_61" id="yiv1504289138yui_3_7_2_17_1353045744173_39" style="font-family: monospace; color: #000000;"&gt;&lt;SPAN class="yui_3_7_2_17_1351598878397_62" id="yiv1504289138yui_3_7_2_17_1353045744173_80"&gt;io_request_entity&amp;gt;get_header_field( if_http_header_fields=&amp;gt;content_type )&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="yui_3_7_2_17_1351598878397_63" style="font-family: monospace; color: #000000;"&gt;&lt;SPAN class="yui_3_7_2_17_1351598878397_64"&gt;The above code returns "&lt;SPAN style="color: #000000; font-family: monospace;"&gt;multipart/form-data&lt;/SPAN&gt;"&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="yui_3_7_2_17_1351598878397_63" style="font-family: monospace; color: #000000;"&gt;&lt;SPAN class="yui_3_7_2_17_1351598878397_64"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P id="yiv1504289138yui_3_7_2_17_1353045744173_39" style="color: #000000;"&gt;&lt;SPAN id="yiv1504289138yui_3_7_2_17_1353045744173_91"&gt;&lt;SPAN id="yiv1504289138yui_3_7_2_17_1353045744173_108" style="font-family: monospace; font-size: 10pt;"&gt;&lt;SPAN id="yiv1504289138yui_3_7_2_17_1353045744173_99"&gt;and &lt;SPAN style="color: #000000; font-family: monospace;"&gt;lt_supported_format&lt;/SPAN&gt; contain following value&lt;BR id="yiv1504289138yui_3_7_2_17_1353045744173_96" /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: monospace;"&gt;application/atom+xml&lt;/SPAN&gt;&lt;/P&gt;&lt;P id="yiv1504289138yui_3_7_2_17_1353045744173_39" style="font-family: monospace;"&gt;application/atom+xml;type=entry&lt;/P&gt;&lt;P id="yiv1504289138yui_3_7_2_17_1353045744173_39" style="font-family: monospace;"&gt;application/json&lt;/P&gt;&lt;P id="yiv1504289138yui_3_7_2_17_1353045744173_39" style="font-family: monospace;"&gt;application/json;odata=verbose&lt;/P&gt;&lt;P id="yiv1504289138yui_3_7_2_17_1353045744173_39" style="font-family: monospace;"&gt;application/xml&lt;/P&gt;&lt;P id="yiv1504289138yui_3_7_2_17_1353045744173_39" style="font-family: monospace;"&gt;application/json&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: monospace;"&gt;And &lt;SPAN style="color: #000000; font-family: monospace;"&gt; validate_content_type&lt;/SPAN&gt; method check Request Header ("&lt;SPAN style="color: #000000; font-family: monospace;"&gt;multipart/form-data&lt;/SPAN&gt;") in &lt;SPAN style="color: #000000; font-family: monospace;"&gt;lt_supported_format.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: monospace;"&gt;&lt;SPAN style="color: #000000; font-family: monospace;"&gt;if not found above error is thrown.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: monospace;"&gt;&lt;SPAN style="color: #000000;"&gt;Regards,&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: monospace;"&gt;&lt;SPAN style="color: #000000;"&gt;Jibin Joy&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P class="yui_3_7_2_17_1351598878397_68" id="yiv1504289138yui_3_7_2_17_1353045744173_39"&gt;&lt;/P&gt;&lt;P class="yui_3_7_2_17_1351598878397_69" id="yiv1504289138yui_3_7_2_17_1353045744173_39" style="font-family: monospace; color: #000000; font-size: 12px;"&gt;&lt;SPAN id="yiv1504289138yui_3_7_2_17_1353045744173_124"&gt;&lt;SPAN id="yiv1504289138yui_3_7_2_17_1353045744173_123" style="font-family: monospace; font-size: 10pt;"&gt;&lt;SPAN id="yiv1504289138yui_3_7_2_17_1353045744173_119"&gt; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="yui_3_7_2_17_1351598878397_72" id="yiv1504289138yui_3_7_2_17_1353045744173_39" style="font-family: monospace; color: #000000; font-size: 12px;"&gt;&lt;SPAN id="yiv1504289138yui_3_7_2_17_1353045744173_136"&gt;&lt;SPAN id="yiv1504289138yui_3_7_2_17_1353045744173_135" style="font-family: monospace; font-size: 10pt;"&gt;&lt;SPAN id="yiv1504289138yui_3_7_2_17_1353045744173_131"&gt;&lt;BR id="yiv1504289138yui_3_7_2_17_1353045744173_145" /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P id="yiv1504289138yui_3_7_2_17_1353045744173_39" style="color: #000000;"&gt;&lt;SPAN id="yiv1504289138yui_3_7_2_17_1353045744173_143"&gt;&lt;SPAN id="yiv1504289138yui_3_7_2_17_1353045744173_142" style="font-family: monospace; font-size: 10pt;"&gt;&lt;SPAN id="yiv1504289138yui_3_7_2_17_1353045744173_138"&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;DIV id="yiv1504289138yui_3_7_2_17_1353045744173_39"&gt; &lt;/DIV&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-size: 12px; background-color: #ffffff; font-family: Consolas, 'Lucida Console', monospace;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Nov 2012 16:38:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/file-attachment-using-gateway/qaa-p/9144600#M3245299</guid>
      <dc:creator>jibin_joy</dc:creator>
      <dc:date>2012-11-16T16:38:24Z</dc:date>
    </item>
    <item>
      <title>Re: File Attachment using gateway</title>
      <link>https://community.sap.com/t5/technology-q-a/file-attachment-using-gateway/qaa-p/9144601#M3245300</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jibin&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Just to clarify what the issue is.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You are using a browser and trying to upload a file as a stream using an input form&lt;/P&gt;&lt;P&gt;i'm guess something like&lt;/P&gt;&lt;P&gt;&amp;lt;form name="form1" method="post" action="/gatewayservice"&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;input type="file" name= "fileUpload"&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You are expecting Content-Type: text/plain to be sent&lt;/P&gt;&lt;P&gt;but the browser is wrapping your file in a Content-Type: multipart/form-data; and Gateway doesn't support this Content-Type&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You are wanting to know how to send only Content-Type: text/plain from the browser.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I guess you could try changing the enctype of the form or better yet use the Filereader API to get the BLOB and then do an XHR to the gateway service.&amp;nbsp; See &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://www.html5rocks.com/en/tutorials/file/dndfiles/"&gt;http://www.html5rocks.com/en/tutorials/file/dndfiles/&lt;/A&gt;&lt;SPAN&gt; should give you some ideas of what is possible using webkit.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;&lt;P&gt;JSP&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Consolas, 'Lucida Console', monospace; font-size: 11.818181991577148px; background-color: #ffffff;"&gt;&lt;SPAN class="com" style="font-size: 13px; color: green;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Nov 2012 23:14:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/file-attachment-using-gateway/qaa-p/9144601#M3245300</guid>
      <dc:creator>former_member182048</dc:creator>
      <dc:date>2012-11-16T23:14:04Z</dc:date>
    </item>
    <item>
      <title>Re: File Attachment using gateway</title>
      <link>https://community.sap.com/t5/technology-q-a/file-attachment-using-gateway/qaa-p/9144602#M3245301</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi John,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;My scenario is simple trying to uploading any file it can be pdf , image or just a text.&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;form action="XXXXXX/XXX/XXXX/Customers"&amp;nbsp; method="post" enctype="multipart/form-data"&amp;gt;&lt;/P&gt;&lt;P&gt; &amp;lt;input type='file' name='fileupload' /&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;/form&amp;gt;&lt;/P&gt;&lt;P&gt; this one is parsing fine but we have to add one more header &lt;TT class="SAPXDPTechnicalName monospace" title="Object name"&gt;X-Requested-With=XMLHttpRequest until then it will throw an error. but dont know how to set header during form submit . so we have to introduce one more object in between like servlet which will add header and pass to gateway.&lt;/TT&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; For testing purpose i am using chrome rest client tool as u mentioned in past post .&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Based on my observation the browser is wrapping&amp;nbsp; file in a Content-Type: multipart/form-data and it support also but it is not parsing the file stream properly, as it does for multipart/mixed ( it fetch each request from batch request ) .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope i am clear with my&amp;nbsp; scenario . &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Jibin Joy&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 17 Nov 2012 04:33:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/file-attachment-using-gateway/qaa-p/9144602#M3245301</guid>
      <dc:creator>jibin_joy</dc:creator>
      <dc:date>2012-11-17T04:33:08Z</dc:date>
    </item>
    <item>
      <title>Re: File Attachment using gateway</title>
      <link>https://community.sap.com/t5/technology-q-a/file-attachment-using-gateway/qaa-p/9144603#M3245302</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jibin,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Are you able to read the attachment as per the link,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="jive-link-external-small active_link" href="http://help.sap.com/saphelp_gateway20sp04/helpdata/en/67/d2c38221984d8eb46b8a8d983407b9/content.htm" style="font-size: 12px; background-color: #ffffff; color: #3778c7; text-decoration: underline !important;"&gt;http://help.sap.com/saphelp_gateway20sp04/helpdata/en/67/d2c38221984d8eb46b8a8d98&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 10pt; font-family: Arial, sans-serif;"&gt;1. I am trying to read a pic from the application server as in this document.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: Arial, sans-serif;"&gt;2. I have created a entity type with few fields for emp details and one more field for Mime Type, like yours.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: Arial, sans-serif;"&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/jiveimages/256326" height="111" width="181" /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;3.&lt;SPAN style="font-size: 10pt; font-family: Arial, sans-serif;"&gt;And while mapping a data source, I have mapped except mime,as we are coding in EXT class , what should i map here.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: Arial, sans-serif;"&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/jiveimages/256355" width="450" /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: Arial, sans-serif;"&gt;4.I am getting "Property 'mimeType' of Data Object 'EmployeeData' has no type assigned." error. Please let me know how you proceeded with next steps.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: Arial, sans-serif;"&gt;Thanks and Regards,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: Arial, sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: Arial, sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 Aug 2013 06:29:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/file-attachment-using-gateway/qaa-p/9144603#M3245302</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-08-02T06:29:17Z</dc:date>
    </item>
    <item>
      <title>Re: File Attachment using gateway</title>
      <link>https://community.sap.com/t5/technology-q-a/file-attachment-using-gateway/qaa-p/9144604#M3245303</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Peter Dinesh ,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; still now i didn't tested File attachment using RFC ..... for time being create temp attribute in RFC FM then map to that attribute .&lt;/P&gt;&lt;P&gt;and in&amp;nbsp; create , update or&amp;nbsp; get stream we can u mention actual mine type &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Jibin Joy&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Sep 2013 07:47:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/file-attachment-using-gateway/qaa-p/9144604#M3245303</guid>
      <dc:creator>jibin_joy</dc:creator>
      <dc:date>2013-09-23T07:47:20Z</dc:date>
    </item>
    <item>
      <title>Re: File Attachment using gateway</title>
      <link>https://community.sap.com/t5/technology-q-a/file-attachment-using-gateway/qaa-p/9144605#M3245304</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Friends,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am facing a scenario wherein for a header(1st Entity) I need to upload multiple attachments(2nd Entity).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have established an association and navigation between 2 entities. I understand that GET_STREAM/CREATE_STREAM are called based on operation via HTTP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My issues is, how can I call the CREATE_STREAM or GET_STREAM multiple times for an entity ?.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Venkat&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Sep 2013 11:49:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/file-attachment-using-gateway/qaa-p/9144605#M3245304</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-09-30T11:49:16Z</dc:date>
    </item>
    <item>
      <title>Re: File Attachment using gateway</title>
      <link>https://community.sap.com/t5/technology-q-a/file-attachment-using-gateway/qaa-p/9144606#M3245305</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jibin,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Did you find a solution to your problem? I am facing the exact issue with the file surrounded by webkitformboundary when it is sent to the CREATE_STREAM method. The browser is IE8, so not much can be done here.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Neha&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 May 2014 14:30:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/file-attachment-using-gateway/qaa-p/9144606#M3245305</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2014-05-07T14:30:10Z</dc:date>
    </item>
    <item>
      <title>Re: File Attachment using gateway</title>
      <link>https://community.sap.com/t5/technology-q-a/file-attachment-using-gateway/qaa-p/9144607#M3245306</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Neha,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; Can i know which&amp;nbsp; Service Package ur using .. If possible can u post ur UI Code in my mail ID .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Jibin Joy &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 May 2014 15:09:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/file-attachment-using-gateway/qaa-p/9144607#M3245306</guid>
      <dc:creator>jibin_joy</dc:creator>
      <dc:date>2014-05-07T15:09:07Z</dc:date>
    </item>
    <item>
      <title>Re: File Attachment using gateway</title>
      <link>https://community.sap.com/t5/technology-q-a/file-attachment-using-gateway/qaa-p/9144608#M3245307</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jibin,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;NW 7.31 SP06. Could you send your email id? Thanks!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards&lt;/P&gt;&lt;P&gt;Neha&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 May 2014 15:27:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/file-attachment-using-gateway/qaa-p/9144608#M3245307</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2014-05-07T15:27:21Z</dc:date>
    </item>
    <item>
      <title>Re: File Attachment using gateway</title>
      <link>https://community.sap.com/t5/technology-q-a/file-attachment-using-gateway/qaa-p/9144609#M3245308</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-size: 12px; color: #333333;"&gt;Hello John,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 12px; color: #333333;"&gt;I want to upload a file like PDF or DOC from ui5 to backend, using oData.&lt;/P&gt;&lt;P style="font-size: 12px; color: #333333;"&gt;I created a gateway service.&lt;/P&gt;&lt;P style="font-size: 12px; color: #333333;"&gt;I know that I must redefine create_stream method, but I don't know how to do that.&lt;/P&gt;&lt;P style="font-size: 12px; color: #333333;"&gt;Do you have an example, how to write this method in abap?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 12px; color: #333333;"&gt;Thank you,&lt;/P&gt;&lt;P style="font-size: 12px; color: #333333;"&gt;Mari&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 May 2014 11:02:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/file-attachment-using-gateway/qaa-p/9144609#M3245308</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2014-05-13T11:02:57Z</dc:date>
    </item>
  </channel>
</rss>

