Dim url=""
Dim xmlRequest As String =CompressJson(rcjo)
Dim xml As String = xmlRequest '实例化一个字符转码对象'
Dim encoding As System.Text.Encoding = System.Text.Encoding.GetEncoding("utf-8")
Dim request As System.Net.WebRequest = System.Net.WebRequest.Create(url)
request.Method = "POST"
Dim postdata() As System.Byte = encoding.GetBytes(xmlRequest)
request.ContentLength = postdata.Length
Dim requesstream As System.IO.Stream = request.GetRequestStream()
requesstream.Write(postdata, 0, postdata.Length)
requesstream.Close()
Dim response As System.Net.WebResponse = request.GetResponse()
Dim responsestream As New System.IO.StreamReader(response.GetResponseStream())
Dim html As String = responsestream.ReadToEnd()
requesstream.Close()
response.Close()
返回的是流式文件,zip压缩包转换的字节数组(有符号),该怎么把这个压缩包保存到固定位置
流式文件如下 80,75,3,4,20,0,0,0,8,0,-52,-119,-114,81,71,122,-6,22,44,0,0,0,60,0,0,0,21,0,0,0,72,52,52,50,48,48,49,48,48,48,49,56