keithwhor / nodal

API Services Made Easy With Node.js

Home Page:http://www.nodaljs.com/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Include a Buffer/BYTEA data_type

qjhart opened this issue · comments

Since the new nodal includes file uploads, it'd be nice to have a best practice for saving files to the database. Maybe for relatively small files, we use bytea. The 'pg' module seems to convert between a javascript buffer and bytea pretty transparently already.