Skip to content

ArgumentError (string contains null byte) with Rails 4 & Postgres #15

Description

@pirkka

I didn't go deep trying to solve this by myself, but looks like with any image I throw at it, the upload gives me this error.

The stacktrace got lost already, but the exception was raised in "lib/active_record/connection_adapters/postgresql/oid/bytea.rb".

I was using ruby 2.0, Postgres & Rails 4.2.

I already started to switch to using S3, but thought I still want to report this. Storing images in the local database would been a perfect fit for this small application (tiny amoung of images, no long term data retention, security important).

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions