Latest post Wed, Feb 18 2015 6:45 PM by robg. 2 replies.
Page 1 of 1 (3 items)
Sort Posts: Previous Next
  • Mon, Feb 16 2015 1:33 PM

    • ATDA
    • Not Ranked
    • Joined on Thu, Mar 14 2013
    • Posts 6
    • Points 60

    Size returned by GetFileDetails WS function

    Hi

     

    When call Assets/GetFileDetails on a master clip, the size returned for all media file seems to be wrong.

     

    - The size seems always return on Kb unit ?

    - This is wrong when i compare it in the windows properties tab.

    For example:

    A media file have a size of 49201152 Kb according to WS.

    49201152*1024 = 50381979648 bytes

    When display the size under windows i get:

    Size = 50 381 980 257 bytes

    Size on disk = 50 383 028 224 bytes

     

    How can i get the size on disk returned for a "stat" function by using GetFileDetails ?

     

     

     

  • Wed, Feb 18 2015 3:54 PM In reply to

    • robg
    • Top 500 Contributor
    • Joined on Fri, Nov 4 2005
    • Tewksbury, MA
    • Posts 494
    • Points 5,605
    • Avid Developer Moderator
      Avid Employee

    Re: Size returned by GetFileDetails WS function

    ATDA,

    Just looking at the numbers, it seems that GetFileDetails returns the size of the file in KB, rounded down to the nearest MB.

         bytes    KB    MB
    WS    50,381,979,648    49,201,152.00    48,048.00000
    size    50,381,980,257    49,201,152.59    48,048.00058
    size on disk    50,383,028,224    49,202,176.00    48,049.00000

     

    And the size on disk appears to be rounded up to the nearest MB.

    I'll check with the developers to confirm this...

    - Rob

     

  • Wed, Feb 18 2015 6:45 PM In reply to

    • robg
    • Top 500 Contributor
    • Joined on Fri, Nov 4 2005
    • Tewksbury, MA
    • Posts 494
    • Points 5,605
    • Avid Developer Moderator
      Avid Employee

    Re: Size returned by GetFileDetails WS function

    ATDA,

    I confirmed that the file size returned from GetFileDetails is the size of the file in KB, rounded down to the nearest MB.

    This is the same number reported in Interplay Access. See page 106 of the Interplay Access User Guide:
      http://resources.avid.com/SupportFiles/attach/InterplayAccess_UG_V3_0.pdf 

    - Rob

     

Page 1 of 1 (3 items)

© Copyright 2011 Avid Technology, Inc.  Terms of Use |  Privacy Policy |  Site Map |  Find a Reseller