i am working on android  uidai auth client  ,i am creating the pid block 
using xml as well as protobuf format ,first time i am working on proto buf 
format.i only use biometric data ,the xml format of pid block is working 
fine,

but when i use proto buf fortmat i got "invalid pid xml" error code 511 
.this my code ,i check that proto buf format that is correct but i dnt know 
why it's not working  .can u any body help me to resolve this issue

i got the auth.proto file from uidai site
and also i use the same auth.java file also from uidai

public Bio.Builder formBio(String curretData)
{
 iret = checkFMR(curretData);
Bio.Builder biotag = Bio.newBuilder();
iret = checkFMR(curretData);
if (iret == 0)

{
 biotag.setType(BioType.FMR);
 } else {
 biotag.setType(BioType.FIR);
 }
 biotag.setPosh(Position.UNKNOWN);
biotag.setContent(ByteString.copyFromUtf8(curretData));
 return biotag;
 }
 public int FormBioTag(String curretData, int String failedData, )

{
 int iresult=-1;
try {
  Bio.Builder bioData1;
  Bio.Builder bioData2;
  Bios.Builder biosTag = Bios.newBuilder();
  
  
     bioData1=formBio(curretData); 
     
     biosTag.addBio(bioData1);
     LOG.d(TAG, "bioData1 formed");
if(failedData!=null)
{
 bioData2=formBio(curretData); 
 biosTag.addBio(bioData2);
 }
 
Pid.Builder pidTag=Pid.newBuilder();
 timeStamp = GetUTCdatetimeAsString();
 pidTag.setTs(ByteString.copyFromUtf8(timeStamp));
 pidTag.setVer("1.0");
 pidTag.setBios(biosTag);
 byPidxml=pidTag.build().toByteArray();

-- 
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 [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/protobuf.
For more options, visit https://groups.google.com/d/optout.

Reply via email to