Hi support team,
WebRequest request = WebRequest.Create(href);
WebResponse response = request.GetResponse();
using (Stream responseStream = response.GetResponseStream())
using (FileStream fileStream = File.OpenWrite(@"C:\Temp\img.jpg"))
byte buf = new byte;
int bytesRead = responseStream.Read(buf, 0, buf.Length);
if (bytesRead <= 0)
fileStream.Write(buf, 0, bytesRead);
Awais, thanks for your reply but I did specify that the issue with java. .Net example doesn’t help. It also seems that you didn’t understand my explanation in the first post.
Hi Awais, your response actually gave me an idea to fix the issue. Many Thanks.
Thanks Awais, ResourceLoadingCallback sounds useful. There was nothing wrong with the input html. As stated in the first post, I did test it with absolute urls.