i am using mobile for communication with live server
when mobile send its information to server the input stream is encoded in utf-8
that is converted into string but it is still not understandable
so chk it what should i do to convert such type of data
Stream str;
string strmContents= "";
int counter, strLen, strRead;
// Create a Stream object.
str = context.Request .InputStream;
_request.WriteL ine("Stream direct input stream:" + str.ToString()) ;
// Find number of bytes in stream.
strLen = (int)str.Length ;
// Create a byte array.
byte[] strArr = new byte[strLen];
// Read stream into byte array.
strRead = str.Read(strArr ,0,strLen);
//_request.WriteL ine("Stream byte data:" + strArr.ToString ());
/*// Convert byte array to a text string.
for(counter = 0;counter<strLe n-1;counter++)
strmContents = strmContents + strArr[counter].ToString();
_request.WriteL ine("InputStrea m:" + strmContents+"\ ninoutstream length:"+Conver t.ToString(strL en));
Result: i got a string
InputStream:200 106294547478389 786777764747688 468328312111099 777632494649474 769781091081133 494649011143831 211109977764749 464901101349495 553495455555557 019134901110873 104116116112584 747504850465651 464954574649495 347102105110971 084711512111099 471001011029711 710811646115121 110991091080111 038735153505349 504849575354545 548480186311497 104101101108011 789001713985452 018331151211109 910910858971171 161044598971151 059901100793991 097011190878611 579109494997717 011698877010701 190017635151484 801110010770753 490179350484901 841108739710010 098111111107011 103873971001009 811111110701190 016974301793490 111110070753500 179350484901841 108739997108101 110100971140111 038739997108101 110100971140119 001697430179349 011111009575351 019001713119981 201091080183397 112112108105999 711610511111047 118110100461151 211109910910845 100101118105110 102431199812010 910801100841038 734647100101118 105110102494901 179195134632001 062945474783897 867777647476884 683268101118731 101023249464947 476978741013494 649018137711111 611111411110897 326769443267111 112121114105103 104116325048484 801853765401943 825153494995719 548654653514649 658201803656585 715048564965670 173351535053495 048495753545455 484801753112104 111110101017193 397100100981111 111070190703116 101120116471204 511899971141000 110035046490119 870311610112011 647120451189997 114100011003504 649011959634901 963500111719339 997108101110100 971140190703116 101120116471204 511899971081011 101009711401100 349464801198703 116101120116471 204511899971081 011101009711401 100349464801195 963490196350011 169703116101120 116471204511899 971141000188366 697173780199386 676582680188369 786801993866765 826801883866982 837379780199350 464901883707801 883780188384697 601873808269700 187387798275018 737279776901873 676976760187386 736869790187370 658801873806571 698201873884577 798445827378717 368018836668658 901883656882018 736879770187372 797769018738779 827501873737884 760187380798384 657601873806582 676976018836977 657376018737378 846982786984018 838845777984456 765840188388457 779844577760188 367726582836984 017031161011201 164712045118999 710810111010097 114018836669717 378019938667657 669786865820199 386698669788401 883666971737801 993866765766978 686582019938669 866978840188386 698283737978019 934946480188366 697173780188369 786801883838577 776582890188368 848384658284018 836884697868018 836565766582770 188382828576690 188369886865846 901883676584697 179827369830188 380827379827384 890188368856901 883677977807669 846968018838384 658485830188367 726582836984011 1111181
inoutstream length:1274