Hi
I am retrieving a file from a server, say http://www.abc.com/abc.json which is compressed.
What is the method of reading the response in vb.net (visual studio)? ie, decompressing it first then reading it?
My general method is as follows but it doesn't like reading the data since it's compressed I guess.
Thanks!
I am retrieving a file from a server, say http://www.abc.com/abc.json which is compressed.
What is the method of reading the response in vb.net (visual studio)? ie, decompressing it first then reading it?
My general method is as follows but it doesn't like reading the data since it's compressed I guess.
Code:
Dim Url As String = "https://www.abc.com/abc.json" Dim request As WebRequest = Nothing Dim response As WebResponse = Nothing Dim strResponseStatus As String = "" request = WebRequest.Create(New Uri(Url)) request.Method = "GET" request.ContentType = "application/json-rpc" response = request.GetResponse()
Comment