# Read file to stream

**URL:** <https://forum.novacura.com/t/read-file-to-stream/790>\
**Category:** Flow Classic\
**Created:** [October 11, 2024, 7:50am UTC](https://forum.novacura.com/t/read-file-to-stream/790 "2024-10-11T07:50:52Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![JoakimLeren](https://avatars.discourse-cdn.com/v4/letter/j/7C9FD7/32.png) [@JoakimLeren](https://forum.novacura.com/u/JoakimLeren)\
**Post date:** [October 11, 2024, 7:50am UTC](https://forum.novacura.com/t/read-file-to-stream/790/1 "2024-10-11T07:50:52Z")

</div>

Hi!

I am currently working with a workflow as a datasource for the document viewer. I have a file on an internal network location (file server) that I wish to read in as a stream so that I can get it to become a valid variable for output from a workflow which I assume means I will have to read a file in as a stream. However, I cannot find this option in the File Systems connector, the only option seems to be to read a zip as a stream, but my files are not zipped.

Could anyone shed som light on how I can go about accomplishing this, i.e. displaying a file with a path like this in the document viewer in Portal2?  
\MYSERVER\Data\DOCMAN\223344\ANTENNA\ANTENNA1\223344-PIC\_40.0#S.jpg

//Joakim

---

<div class="post-metadata">

**Author:** ![JoakimLeren](https://avatars.discourse-cdn.com/v4/letter/j/7C9FD7/32.png) [@JoakimLeren](https://forum.novacura.com/u/JoakimLeren)\
**Post date:** [October 11, 2024, 7:56am UTC](https://forum.novacura.com/t/read-file-to-stream/790/2 "2024-10-11T07:56:30Z")

</div>

Note, if I zip the location and the read the zip to stream, it works, but I would ofcourse rather avoid having to zip each individual file before reading it to stream.

---

<div class="post-metadata">

**Author:** ![Alluse](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.novacura.com/alluse/32/1013_2.png) [@Alluse](https://forum.novacura.com/u/Alluse)\
**Post date:** [October 11, 2024, 8:08am UTC](https://forum.novacura.com/t/read-file-to-stream/790/3 "2024-10-11T08:08:40Z")

</div>

Hi Joakim. I know. it should be a direct option in the file system connector. The workaround is to add it to zip, read to file stream.

Br
