Problem in File upload to Health vault In Android

Sep 23, 2013 at 2:24 PM
HI,

Any one know how to upload (.text,.pdf,.jpg) file to health vault in ANDROID



I was trying to upload .txt file only, I had refer

http://blogs.msdn.com/b/ericgu/archive/2011/05/24/dealing-with-blob-data-in-healthvault-xml.aspx

My request code is:

String infoBuilder = <info><thing><type-id>bd0403c5-4ae2-4b0e-a8db-1888678e4528</type-id><thing-state>Active</thing-state><flags>0</flags><data-xml><blob-payload><blob><blob-info><name/><content-type>text/plain</content-type></blob-info><content-length>4</content-length><base64data>VGVzdA==
</base64data></blob></blob-payload></data-xml></thing></info
    Request request = new Request();
request.setMethodName("PutThings");
//request.setMethodVersion("2");
request.setInfo(infoBuilder.toString());

template.makeRequest(request);
I was getting error

com.microsoft.hsg.HVUncategorizedException: Error: 77 The specified file extension '' is not supported.

what is the reason of :Error 77?