This module delivers you with a converter that you can use to convert a number into a string suitable for displaying the number as bytes, KB, MB and TB.
Your project should already be configured to use Eclipse Mojarra or Apache MyFaces.
To use it in your web application you will need to do add the following Maven dependency:
<dependency>
<groupId>com.manorrock.oyena.converter.bytes</groupId>
<artifactId>oyena-converter-bytes</artifactId>
<version>x.y.z</version>
</dependency>
Where you need to replace x.y.z with the version you want to use.