Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Changes in ProtoBuf.js 3.8

dcodeIO edited this page Oct 29, 2014 · 2 revisions

It has been requested to change the default representation of binary data when converting binary fields to JSON-like objects and vice-versa.

As of version 3.8.0, ProtoBuf.js uses base64 encoding by default:

  • Instead of returning buffers, Message#toRaw([includeBinaryAsBase64=false]) now returns base64 encoded strings for binary data when includeBinaryAsBase64 is set to true (was: includeBuffers).

  • String assignments to bytes fields by default parse the string as base64.

Clone this wiki locally

Morty Proxy This is a proxified and sanitized view of the page, visit original site.