0
Hi,Before you can check directly in browers url contains data or not.
try my sample url image file
System.Net.WebClient wc = new System.Net.WebClient();
byte[] raw = wc.DownloadData("http://adrenalin.myadrenalin.com/myadrenalin/images/login.jpg");
string webData = System.Text.Encoding.UTF8.GetString(raw);
It will return data.
0
yes, it is working for me.
0
Hi,
It doesn't work, i got empty array on raw.
did you try it? is it working for you?
Thanks
Shlomi
0
Hi try like this
private void button1_Click(object sender, EventArgs e)
{
string url;
url = "http://www.finviz.com/screener.ashx?v=110&s=ta_topgainers&o=-price"; // This is not working
System.Net.WebClient wc = new System.Net.WebClient();
byte[] raw = wc.DownloadData(url);
string reply = System.Text.Encoding.UTF8.GetString(raw);
}