G
Guest
I have an image control which I populate using an api url.
For example http://getimage.com?id=1234
where 1234 is a variable I am passing in.
My problem is that the id of the image could be 001234 or 01234. However, I
don't know when I am making the call.
Is there a way that I can check my image control to make sure I actually
have an image? My thought process is that I would first try 1234, if that
does not bring back an image, I would try 01234, etc....
I do not have control over the api.
Any suggestions are appreciated.
Thanks
For example http://getimage.com?id=1234
where 1234 is a variable I am passing in.
My problem is that the id of the image could be 001234 or 01234. However, I
don't know when I am making the call.
Is there a way that I can check my image control to make sure I actually
have an image? My thought process is that I would first try 1234, if that
does not bring back an image, I would try 01234, etc....
I do not have control over the api.
Any suggestions are appreciated.
Thanks