Skip to content
Discussion options

You must be logged in to vote

Yes, it does, RFC 2045 Section 6.8 requires breaking BASE64 text into lines 76 characters long. Besides, if one removes those newlines (easily done on Postgres side), decoders barf at this non-standard BASE64 text - I have tried it, PostgreSQL does it correctly, and ends those lines with (0x10). I do not generate JSON from Postgres (and when I tried that, it still had actual linefeeds).

This is about "Base64 Content-Transfer-Encoding". PostgreSQL creates that, yes.

But delivering base64 inlined in JSON has nothing to do with "Content-Transfer-Encoding" or MIME at all.

Also, it strikes me as odd that you are citing an RFC, while asking us to return non-standard-compliant JSON instead...

A…

Replies: 1 comment 8 replies

Comment options

You must be logged in to vote
8 replies
@steve-chavez
Comment options

@steve-chavez
Comment options

@DutchGerman
Comment options

@wolfgangwalther
Comment options

Answer selected by draos
@draos
Comment options

@draos
Comment options

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