# EDI X12 payload octet-stream

**URL:** <https://community.cdata.com/t/edi-x12-payload-octet-stream/551>\
**Category:** CData Arc\
**Tags:** question\
**Created:** [December 5, 2023, 4:09pm UTC](https://community.cdata.com/t/edi-x12-payload-octet-stream/551 "2023-12-05T16:09:39Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![ericbux](https://sea3.discourse-cdn.com/cdata/user_avatar/community.cdata.com/ericbux/32/1679_2.png) [@ericbux](https://community.cdata.com/u/ericbux)\
**Post date:** [December 5, 2023, 4:09pm UTC](https://community.cdata.com/t/edi-x12-payload-octet-stream/551/1 "2023-12-05T16:09:39Z")

</div>

I am setting up a new trading partner to send EDI X12 850 and they keep coming back to me saying “we received your file but it is not processed with octet-stream.&nbsp; Please send as EDI-X12”.

My X12 connector is setup and working just like the dozens of other trading partners.

This is a screen shot of what they are sending me:

 ![26760fc6-1293-49e4-8ebf-4c96c8e136ce.jpg](https://us1.discourse-cdn.com/cdata/original/1X/c98bd392cdfd614908b2926ea75c7ef4cd2f862f.jpeg)

 ![d07eedeb-e719-4299-bd38-58624e3ece70.jpg](https://us1.discourse-cdn.com/cdata/original/2X/9/90422b9fe2add221387beb5320b4b597b63029f3.jpeg)

I checked the Advanced settings on my X12 connector and didn’t see where the application/octet-stream is being set.&nbsp; I tried adding&nbsp;payload=application/edi-x12 on my AS2 Extension map to no avail.

Any ideas would be appreciated.

---

<div class="post-metadata">

**Author:** ![Ankit\_Singh](https://sea3.discourse-cdn.com/cdata/user_avatar/community.cdata.com/ankit_singh/32/1614_2.png) [@Ankit\_Singh](https://community.cdata.com/u/Ankit_Singh)\
**Post date:** [December 6, 2023, 6:04am UTC](https://community.cdata.com/t/edi-x12-payload-octet-stream/551/2 "2023-12-06T06:04:42Z")

</div>

Hi @ericbux

You are definitely looking at the right place, i.e. the **Extension Map** field in the Advanced Settings of the AS2 connector.

**Extension Maps** are a set of name-value pairs that maps file extensions to the desired **HTTP Content-Type** header value. By default, the application will map the following file extensions to content types:

- .xml → application/xml
- .edi&nbsp;or&nbsp;.x12 → application/edi-x12
- .edifact → application/edifact.

All other file extensions are sent with an&nbsp;application/octet-stream&nbsp;content type.

To add or overwrite mappings, this setting should be a comma-delimited list in **extension=contenttype** syntax (e.g. .txt=text/plain,.edi=application/edifact).

Can you try defining this in the **Extension Maps** and see if it helps?

**.x12=application/octet-stream**

---

<div class="post-metadata">

**Author:** ![ericbux](https://sea3.discourse-cdn.com/cdata/user_avatar/community.cdata.com/ericbux/32/1679_2.png) [@ericbux](https://community.cdata.com/u/ericbux)\
**Post date:** [December 6, 2023, 2:06pm UTC](https://community.cdata.com/t/edi-x12-payload-octet-stream/551/3 "2023-12-06T14:06:59Z")

</div>

I do rename my files on the XML Map to correspond to the EDI document type I am sending (in this case my file extension is .850).&nbsp; I added .850=application/edi-x12 to my AS2 Extension Map.&nbsp; Hopefully this will solve the issue.

Thanks!
