How to find out an image's size on disk RRS feed

  • Question

  • User280374082 posted

    Hi, I need to find out an image's size on disk given the image's path.

    I know I can have the image's size (width and height). But I can not find a way of getting it's size on disk.

    Can anybody help?


    Monday, March 15, 2010 1:02 PM


  • User280374082 posted

    I'm sorry I posted this, I already worked out a solution..

    The FileInfo class has a Length property which will give you the file's length on bytes.

    I hope this at least can be useful to somebody else.


    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Monday, March 15, 2010 1:09 PM