Quantcast
Channel: VBForums
Viewing all articles
Browse latest Browse all 16044

Read more the page source with StreamReader?

$
0
0
I have an application that reads google drive page source from a folder URL. Using this it gathers information about the contents of that folder. However, I have ran into an issue. I now am in need of a folder read that has many files in it, but the program doesnt read all of the files. I noticed that it stops where the limit buffer is for google drive (something like the 50's file or so). There are more files in there, but I dont know how to get them to register int he source code for reading.

This is the code I am currently using. I have tried to increase the buffer to an insane amount on my streamreader just to test it, but it results in the same effect. Any suggestions?


Code:

            Dim request As System.Net.HttpWebRequest = System.Net.HttpWebRequest.Create(url)
            Dim response As System.Net.HttpWebResponse = request.GetResponse()
            Dim bf As Integer = 40000000
            Dim s As StreamReader = New StreamReader(response.GetResponseStream(), System.Text.Encoding.ASCII, False, bf)
            Dim sourcecode As String = s.ReadToEnd


Viewing all articles
Browse latest Browse all 16044

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>