Re: [protobuf] Re: Converting JSON Text Into PB Bytes Type

2011-01-05 Thread Siju Varghese
It is a stable branch. Please raise any issues at https://github.com/sijuv/protobuf-codec/issues Regards, Siju On Wed, Jan 5, 2011 at 2:22 PM, yalmasri wrote: > Used the HTTP URL and it worked like charm. Now building resulted in a > compilation failure, it's saying: > > \GIT\protobuf-codec\pr

[protobuf] Re: Converting JSON Text Into PB Bytes Type

2011-01-05 Thread yalmasri
Used the HTTP URL and it worked like charm. Now building resulted in a compilation failure, it's saying: \GIT\protobuf-codec\protobuf-codec-json\src\test\java\protobuf\codec \json\TypesP rotoBuf.java:[2860,48] newGeneratedExtension() in com.googl e.protobuf.GeneratedMessage cannot be applied to (c

[protobuf] Re: Converting JSON Text Into PB Bytes Type

2011-01-05 Thread yalmasri
used the HTTP URL and it worked fine. That's much easier than going into the hassles of TortoiseGit and the rest of nasty SSH stuff. Anyway, trying to build it resulted in: [INFO] [ERROR] BUILD ERROR [INFO] -

[protobuf] Re: Converting JSON Text Into PB Bytes Type

2011-01-05 Thread yalmasri
Appreciate the swift response! Forgive my ignorance in GIT, but I've got this when I ran the command: git clone git://github.com/sijuv/protobuf-codec.git Cloning into protobuf-codec... github.com[0: 207.97.227.239]: errno=No error fatal: unable to connect a socket (No error) I could ping the abo

[protobuf] Re: Converting JSON Text Into PB Bytes Type

2011-01-04 Thread yalmasri
Thanks. I downloaded the binaries and tried to use the test class but my compiler couldn't see class protobuf.codec.json.TypesProtoBuf, it's not anywhere in the binaries. Has this class been added recently but was not reflected to the binaries? I also tried to download source, but seems like GIT i

Re: [protobuf] Re: Converting JSON Text Into PB Bytes Type

2011-01-03 Thread Siju Varghese
You could use https://github.com/sijuv/protobuf-codec . You can check the test case at https://github.com/sijuv/protobuf-codec/blob/master/protobuf-codec-json/src/test/java/protobuf/codec/json/JsonCodecTest.javafor usage. This library is listed under the google protobuf ThirdPartyAddOns wiki as "An

Re: [protobuf] Re: Converting JSON Text Into PB Bytes Type

2010-12-28 Thread Kenton Varda
You should probably contact the authors of protobuf-java-format; I'm not sure if they pay attention to this list. Base64 is the best way to encode arbitrary (non-text) data as text. However, it's really up to the JSON converter code you are using to decide what format to use. As far as I know, J

[protobuf] Re: Converting JSON Text Into PB Bytes Type

2010-12-25 Thread yalmasri
Thanks for the reply. I encoded "Hello world" in Base64 and I got this "SGVsbG8gd29ybGQ=". That doesn't look close to the format I sent in the question. Here's the code snippet I used: import org.apache.commons.codec.binary.Base64; public class Codec { public static void main(String[] arg