Skip to content

How to save a file to a database? #288

Answered by isoos
Pingear asked this question in Q&A
Discussion options

You must be logged in to vote

@Pingear: Aside: you are using the old v2 API, I don't really recall anymore how it worked previously. However, I've created a small test that demonstrates how it should work: #289

Note: There is a :bytea type identifier after the named parameter. It seems to be important, because otherwise the encoder doesn't encode the bytes properly.

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
1 reply
@Pingear
Comment options

Comment options

You must be logged in to vote
1 reply
@Pingear
Comment options

Answer selected by Pingear
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants