# Binary pattern matching when input is a stream

**URL:** <https://forum.elixirforum.com/t/binary-pattern-matching-when-input-is-a-stream/4286>\
**Category:** Questions\
**Created:** [March 24, 2017, 6:30pm UTC](https://forum.elixirforum.com/t/binary-pattern-matching-when-input-is-a-stream/4286 "2017-03-24T18:30:49Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![jeramyRR](https://forum.elixirforum.com/user_avatar/forum.elixirforum.com/jeramyrr/32/722_2.png) [@jeramyRR](https://forum.elixirforum.com/u/jeramyRR)\
**Post date:** [March 24, 2017, 7:31pm UTC](https://forum.elixirforum.com/t/binary-pattern-matching-when-input-is-a-stream/4286/3 "2017-03-24T19:31:26Z")

</div>

They range from 1 to 20 gb.

Basically I need to pattern match on the binary to extract a massive amount of meta-data. I don’t want to use File.read! because that loads the whole file into memory and my VMs don’t have 20gb of ram.

---

_[View the full topic](https://forum.elixirforum.com/t/binary-pattern-matching-when-input-is-a-stream/4286)._
