Appian Community
Site
Search
Sign In/Register
Site
Search
User
DISCUSS
LEARN
SUCCESS
SUPPORT
Documentation
AppMarket
More
Cancel
I'm looking for ...
State
Not Answered
Replies
5 replies
Subscribers
7 subscribers
Views
4581 views
Users
0 members are here
Share
More
Cancel
Related Discussions
Home
»
Discussions
»
General
Document size
Dastagiri Dudekula
over 7 years ago
I observed that when I was reading that document size using a!document() function its giving different value than its actual size?
Example: Actual size of an uploaded file is 638818.99 KB, but when using function to get the size it's giving 654150649
OriginalPostID-245845
Discussion posts and replies are publicly visible
0
Stefan Helzle
A Score Level 3
over 7 years ago
1 kb = 1024 bytes
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
kondetiv
over 7 years ago
@Dastagiri D 638818.99 KB is 654150649 Bytes approximately.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
sridevik7401
Certified Lead Developer
over 7 years ago
@Dastagiri D...as per stefanh791,it is known that a!document() with size property returns bytes.
Example: if you multiply 638818.99 KB * 1024 = 654150649 bytes approximately
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
Rama Thummala
Certified Lead Developer
over 7 years ago
@Dastagiri D
AFAIK, there would small variation in size , but it is very minimal.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
Krishna Chaitanya
A Score Level 1
over 7 years ago
@Dastagiri D
use This code it wil return your document size in KB with 2 digits
round(
document(documentId,"size")/1024,2
)
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel