According to the Système international d'unités ( https://en.wikipedia.org/wiki/International_System_of_Units#Prefixes ). The prefix of thousand is k rather than K. 1 kiB = 1024Bytes
Well, I've made a mistake. IEC 80000-13:2008 uses KiB rather than kiB. Therefore 1 KiB = 1024 Bytes, 1 kB = 1000 Bytes.