View Full Version : how to verify the images are downloaded properly
iswaryasenthilkumar
11th March 2015, 06:04
i have downloaded image and saved in file from server.i have to verify the downloade image and server image are same by name and size. i have to compare both server image and downloaded image .give me suggestion for this.:confused:
Thanks in advance:o
jefftee
11th March 2015, 07:41
Examine the http status code, should be 200 for a successful get. You can check the http headers for the request as well to get the Content-Type and Content-Length headers.
For the name, you already have been shown how to get the image name from the URL, correct?
iswaryasenthilkumar
11th March 2015, 08:55
correct jthomps..
i will check http headers to get content type and content length headers
Examine the http status code, should be 200 for a successful get. You can check the http headers for the request as well to get the Content-Type and Content-Length headers.
For the name, you already have been shown how to get the image name from the URL, correct?
Powered by vBulletin® Version 4.2.5 Copyright © 2024 vBulletin Solutions Inc. All rights reserved.