开发者

How to convert the BYTEARRAYS to NSString in objective -c

Can any one guide me in this problem ,i have to convert BYTEARRAYS to NSString in objective -c. Currently im getting Files in the form of b开发者_开发知识库yte array i have to convert it to file or string to generate the files.

the response string is

<s:Body>
<GetDocumentResponse xmlns="http://tempuri.org/">
<GetDocumentResult>
PGJpbmRpbmcgbmFtZT0id3NIdHRwQmluZGluZ05vU0NUIj4gICAgICAgICA8c2VjdXJpdHkgbW9kZT0iTm9uZSI+ICAgICAgICAgICA8dHJhbnNwb3J0IGNsaWVudENyZWRlbnRpYWxUeXBlPSJOb25lIiAvPiAgICAgICAgICAgPG1lc3NhZ2UgZXN0YWJsaXNoU2VjdXJpdHlDb250ZXh0PSJmYWxzZSIgLz4gICAgICAgICA8L3NlY3VyaXR5PiAgICAgICA8L2JpbmRpbmc+
</GetDocumentResult>
</GetDocumentResponse>
</s:Body>

Kindly guide in this


Use initWithData method of NSString.

@Dutchie432 asked and also given the answer.

How to convert byte array to NSString

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜