# Inserting Binary, Repo & Ecto

**URL:** <https://forum.elixirforum.com/t/inserting-binary-repo-ecto/18536>\
**Category:** Questions\
**Tags:** ecto, phoenix, repo\
**Created:** [December 6, 2018, 2:39pm UTC](https://forum.elixirforum.com/t/inserting-binary-repo-ecto/18536 "2018-12-06T14:39:02Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![NobbZ](https://forum.elixirforum.com/user_avatar/forum.elixirforum.com/nobbz/32/27235_2.png) [@NobbZ](https://forum.elixirforum.com/u/NobbZ)\
**Post date:** [December 6, 2018, 5:15pm UTC](https://forum.elixirforum.com/t/inserting-binary-repo-ecto/18536/3 "2018-12-06T17:15:57Z")

</div>

> [@voughtdq](#):
>
> Something is changing it. If the byte is greater than 128 (with the current data we have), it seems to get dropped to 63.

128 and greater is not valid ASCII anymore, nore were the given string valid UTF8.  
63 is ASCII (and UTF8) for a questionmark.

Can you please check the generated database query? Does that already contain the garbled data or is the query generated correctly? If you try to insert an opposing dataset manually into the database, containing only a single byte greater than 127, can you retrieve it back correctly?

---

_[View the full topic](https://forum.elixirforum.com/t/inserting-binary-repo-ecto/18536)._
