EldoS | Feel safer!

Software components for data protection, secure storage and transfer

getting wrong file size from StorageGetFileSize

Also by EldoS: SecureBlackbox
200+ components and classes for digital security, signing, encryption and secure networking.
#8760
Posted: 01/29/2009 05:26:01
by J S (Priority Standard support level)
Joined: 01/18/2008
Posts: 9

Code
unsigned long fileSize = 0;
StorageGetFileSize (fileHandle, &fileSize);


The above gives me the wrong file size but when viewed in SolFS Explorer it is correct.

I'm writing a file to the storage using
Code
StorageWriteFile
and can use SolFS Explorer to view and or export this file without any issues.

File Size recieved from StorageGetFileSize = 6758400
File Size reported from SolFS Explorer = 6771293


What am I doing wrong here?

Reply

Statistics

Topic viewed 2921 times

Number of guests: 1, registered members: 0, in total hidden: 0




|

Back to top

As of July 15, 2016 EldoS Corporation will operate as a division of /n software inc. For more information, please read the announcement.

Got it!