Comment #2 on issue 620 by Concerting ByteString to String

attached is the protobuff file and below is the code for the conversion

public static String AdXRequest(Object O, Concept req) {
                String ps=null,Impmimes=null,VImpmimes=null;
                int index=0;
                if (O instanceof byte[]){               
            byte[] by = (byte[]) O;
            BidRequest a = BidRequest.parseFrom(by);
                ps = a.toString();
            }catch(Exception e){
                ps = "exception on parseFrom::" + e.getStackTrace();
                ps = "Object is not a byte array.";

You received this message because this project is configured to send all issue notifications to this address.
You may adjust your notification preferences at:

You received this message because you are subscribed to the Google Groups "Protocol 
Buffers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
To post to this group, send email to
Visit this group at
For more options, visit

Reply via email to