# Passing InputStream to wmEDIINTsend

**URL:** <https://techcommunity.softwareag.com/t/passing-inputstream-to-wmediintsend/108144>\
**Category:** Forum\
**Tags:** EDI\
**Created:** [March 5, 2004, 8:57pm UTC](https://techcommunity.softwareag.com/t/passing-inputstream-to-wmediintsend/108144 "2004-03-05T20:57:36Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![dave05](https://avatars.discourse-cdn.com/v4/letter/d/ed655f/32.png) [@dave05](https://techcommunity.softwareag.com/u/dave05)\
**Post date:** [March 5, 2004, 8:57pm UTC](https://techcommunity.softwareag.com/t/passing-inputstream-to-wmediintsend/108144/1 "2004-03-05T20:57:36Z")

</div>

I created a customized flow service to receive my bizdoc from TN and get the parameters and data to pass to wm.EDIINT:send, but when I run it, the data/stream never gets passed.

I know that when I run pub.file:getFile (as in wm.EDIINT.sample:send), my data/stream is of type java.io.InputStream. But I need to get byte data from my bizdoc, so I use wm.tn.doc:getContentPartData, which gives me java.io.ByteArrayInputStream.

Could that be the reason data/stream doesn’t get passed?

It seems like I’m missing something incredibly basic.

Dave

---

<div class="post-metadata">

**Author:** ![jon\_hanson.20673](https://avatars.discourse-cdn.com/v4/letter/j/cc9497/32.png) [@jon\_hanson.20673](https://techcommunity.softwareag.com/u/jon_hanson.20673)\
**Post date:** [March 5, 2004, 10:06pm UTC](https://techcommunity.softwareag.com/t/passing-inputstream-to-wmediintsend/108144/2 "2004-03-05T22:06:12Z")

</div>

We convert using [pub.io](http://pub.io):bytesToStream before mapping into “send”…Is that it?

---

<div class="post-metadata">

**Author:** ![jon\_hanson.20673](https://avatars.discourse-cdn.com/v4/letter/j/cc9497/32.png) [@jon\_hanson.20673](https://techcommunity.softwareag.com/u/jon_hanson.20673)\
**Post date:** [March 5, 2004, 10:09pm UTC](https://techcommunity.softwareag.com/t/passing-inputstream-to-wmediintsend/108144/3 "2004-03-05T22:09:17Z")

</div>

ps…we convert using the “content” object from bizdoc…

---

<div class="post-metadata">

**Author:** ![dave05](https://avatars.discourse-cdn.com/v4/letter/d/ed655f/32.png) [@dave05](https://techcommunity.softwareag.com/u/dave05)\
**Post date:** [March 5, 2004, 10:44pm UTC](https://techcommunity.softwareag.com/t/passing-inputstream-to-wmediintsend/108144/4 "2004-03-05T22:44:18Z")

</div>

Jon,

I’d tried that too, with the same problem. My mistake was being too cautious and saving my wm.EDIINT:send pipeline to a file, then stopping. Then I’d restore and step through. I hadn’t known streams couldn’t be saved. When I just let it all rip, everything worked.

Thanks anyhow.

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/techcommunity/original/3X/c/d/cd19967bb605d28a72d77eb83a1cae22f3df2eb8.svg) [@system](https://techcommunity.softwareag.com/u/system)\
**Post date:** [April 2, 2021, 3:05pm UTC](https://techcommunity.softwareag.com/t/passing-inputstream-to-wmediintsend/108144/5 "2021-04-02T15:05:05Z")

</div>


