0

I have a string like \314\002\012\001 which I need to convert into a base64 encoded byte string.

1
  • Are you using a binary data type in the database? Commented May 27, 2011 at 2:24

1 Answer 1

2

You should be able to use the built-in php function pg_unescape_bytea. There is an example on that page.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.