Hey Guys,
i’m sorry, my last post was an fail,
i just wanted to ask how can i check if an picture is available under the URL “xy” just an random URL
i would be very glad if you could help me
Hey Guys,
i’m sorry, my last post was an fail,
i just wanted to ask how can i check if an picture is available under the URL “xy” just an random URL
i would be very glad if you could help me
Something like this might work - checking the header for a good response from the URL.
dim imageResult as string
dim checkImage as new HTTPSocket
'Check if image exists
imageResult = checkImage.Get("http://URLtoMyImage.com/image.jpg", 20)
if checkImage.HTTPStatusCode = 200 then
'URL is good so there is an image there
else
'No good
end
i will check on that
thanks for helping
No prob - you could also use HTTPSocket.GetHeaders instead of HTTPSocket.Get which would prevent it from trying to actually fetch the image. This would be faster, especially if your images are large, and it would take less bandwidth. I didn’t think of it initially.
J