diff --git a/datastore_server/source/java/ch/systemsx/cisd/openbis/dss/generic/server/AbstractDataSetPackager.java b/datastore_server/source/java/ch/systemsx/cisd/openbis/dss/generic/server/AbstractDataSetPackager.java
index b1a0a4d0580585031c753f551c944783e7d3e66a..c90070b0565ef1050adb5cf573e51ba3628854c8 100644
--- a/datastore_server/source/java/ch/systemsx/cisd/openbis/dss/generic/server/AbstractDataSetPackager.java
+++ b/datastore_server/source/java/ch/systemsx/cisd/openbis/dss/generic/server/AbstractDataSetPackager.java
@@ -147,7 +147,7 @@ public abstract class AbstractDataSetPackager
             }
         } else if (file.isFile())
         {
-            long size = node.getFileLength();
+            long size = file.length();
             long checksum = isChecksumNeeded() ? node.getChecksumCRC32() : 0;
             try
             {