# Active resource and binary data for sqlite3

**URL:** <https://www.ruby-forum.com/t/active-resource-and-binary-data-for-sqlite3/156033>\
**Category:** Rails\
**Created:** [December 19, 2008, 4:37pm UTC](https://www.ruby-forum.com/t/active-resource-and-binary-data-for-sqlite3/156033 "2008-12-19T16:37:56Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Laurence](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/l/5fc32e/32.png) [@Laurence](https://www.ruby-forum.com/u/Laurence)\
**Post date:** [December 19, 2008, 4:37pm UTC](https://www.ruby-forum.com/t/active-resource-and-binary-data-for-sqlite3/156033/1 "2008-12-19T16:37:56Z")

</div>

I posted some data to a webserver using ActiveResource, it seemed I  
needed to encode the binary data to Base64 for it to work. When I  
tried to read the data back and decode it from Base64 it seemed like I  
had to decode it twice which baffled me how it could have been double  
encoded when I only encoded it once ?
