Results 1 to 3 of 3

Thread: how to verify the images are downloaded properly

  1. #1
    Join Date
    Nov 2014
    Location
    Chennai
    Posts
    160
    Thanks
    65
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default how to verify the images are downloaded properly

    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.
    Thanks in advance

  2. #2
    Join Date
    Dec 2009
    Location
    New Orleans, Louisiana
    Posts
    791
    Thanks
    13
    Thanked 153 Times in 150 Posts
    Qt products
    Qt5
    Platforms
    MacOS X

    Default Re: how to verify the images are downloaded properly

    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?

  3. The following user says thank you to jefftee for this useful post:

    iswaryasenthilkumar (11th March 2015)

  4. #3
    Join Date
    Nov 2014
    Location
    Chennai
    Posts
    160
    Thanks
    65
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Re: how to verify the images are downloaded properly

    correct jthomps..
    i will check http headers to get content type and content length headers
    Quote Originally Posted by jthomps View Post
    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?

Similar Threads

  1. Verify data in a dialog
    By admkrk in forum Newbie
    Replies: 4
    Last Post: 7th July 2014, 22:21
  2. How to sign and verify through Openssl
    By mania in forum General Discussion
    Replies: 5
    Last Post: 11th March 2013, 04:54
  3. Better usage of a downloaded binary
    By Momergil in forum Qt Programming
    Replies: 3
    Last Post: 8th March 2012, 16:57
  4. Verify fields in QTableWidget are complete?
    By alitoh in forum Qt Programming
    Replies: 2
    Last Post: 18th May 2011, 13:49
  5. Replies: 3
    Last Post: 1st September 2008, 23:57

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.