I am picking image id from api and requesting image with image id. in addition to 200 check, how can i verify if image is present?
I have tried to run
but getting error with second line (.check(bodyString.not(null))). appreciate you help
Did you try with just bodyString (which means the same thing as bodyString.exists)?
Then, the most accurate way to check a binary file is to use a checksum check (but you need to know the expected checksum value).
Thanks for quick reply. I have just tried and it seems to be ok. I’ll try to run code and see if it fails when there is no image.