I have a string like \314\002\012\001
which I need to convert into a base64 encoded byte string.
将postgres bytea字符串转换为php字节字符串
- 写回答
- 好问题 0 提建议
- 追加酬金
- 关注问题
- 邀请回答
-
1条回答 默认 最新
- dongzichan2886 2011-05-27 02:29关注
You should be able to use the built-in php function pg_unescape_bytea. There is an example on that page.
本回答被题主选为最佳回答 , 对您是否有帮助呢?解决 无用评论 打赏 举报