0

我正在从一个名为 Insert 的 PowerShell 脚本进行 REST 调用,它返回一个字节数组。我想知道如何将此字节数组转换为对象。

4

1 回答 1

0

这是一个起点,将您的字节数组转换为字符串,但它似乎不完整:

$a = 60,63,120,109,108,32,118,101,114,115,105,111,110,61,34,49,46,48,34,32,101,110,99,111,100,105,110,103,61,34,117,11
6,102,45,56,34,32,115,116,97,110,100,97,108,111,110,101,61,34,121,101,115,34,63 ,62,13,10,60,101,110,116,114,121,32,120,
109,108,58,98,97,115,101,61,34,104,116,116,112,58,47,47,108,111,99,97,108,104,111,115,116,47,82,101,112,111,115,105,116,
111,114,121,47,100,97,116,97,47,70,108,101,120,105,98,108,101,67,111,109,112,117,116,105

( $a | % { -join [char]$_  }  ) -join ''

<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<entry xml:base="http://localhost/Repository/data/FlexibleComputi
于 2013-01-21T19:44:12.487 回答