title: com.google.protobuf.InvalidProtocolBufferException
body: <p>Tried to parse bidrequest from bytes,but getting exception as follows,Have searched for long time but not able to find solution.kindly help if anyone knows...</p>
  
  <pre><code>    //Bidrequest json string fetched from httpRequest
  
      String obj = request.getReader().lines().collect(Collectors.joining());
  
      ExtensionRegistry reg = ExtensionRegistry.newInstance();                    
      AdxExt.registerAllExtensions(reg);
  
      InputStream input = new ByteArrayInputStream(obj.getBytes(),0,obj.getBytes().length);
  
      BidRequest openRTBRequest =BidRequest.parseFrom(input,reg);
  </code></pre>
  
  <p><a href="https://i.stack.imgur.com/2tZbi.png" rel="nofollow noreferrer">Exception screenshot</a></p>