You can use TextFormat but it is probably *less* efficient than base64.

On Tue, Nov 24, 2009 at 4:14 PM, Will Morton <[email protected]> wrote:

> 2009/11/25 Adam Vartanian <[email protected]>:
> >> What am I doing wrong?  What's the best way to do java string
> >> serialization of protobuf messages?
> >
> > If you absolutely have to pass things around as a String, you're going
> > to need to do so in some kind of encoding that supports arbitrary
> > data.  For example, you could encode it in Base64.
> >
>
> Great, thanks guys... I was wondering if protobuf had a more efficient
> string-safe encoding, but I'll just base64 it.
>
> Cheers!
>
> Will
>
> --
>
> You received this message because you are subscribed to the Google Groups
> "Protocol Buffers" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to
> [email protected]<protobuf%[email protected]>
> .
> For more options, visit this group at
> http://groups.google.com/group/protobuf?hl=en.
>
>
>

--

You received this message because you are subscribed to the Google Groups 
"Protocol Buffers" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/protobuf?hl=en.


Reply via email to