以文本方式查看主题

-  Foxtable(狐表)  (http://foxtable.com/bbs/index.asp)
--  专家坐堂  (http://foxtable.com/bbs/list.asp?boardid=2)
----  如何接收JAVA服务器返回的流式文件  (http://foxtable.com/bbs/dispbbs.asp?boardid=2&id=175253)

--  作者:s111321
--  发布时间:2022/2/25 14:40:00
--  如何接收JAVA服务器返回的流式文件
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 


--  作者:有点蓝
--  发布时间:2022/2/25 15:00:00
--  
参考这种:http://www.foxtable.com/mobilehelp/topics/0160.htm