The bootloader will install your application by means of the TFTP protocol. There is no need to change your application code. Per default DHCP is used for obtaining the ip-address.
The limitation for the firmware file to be uploaded is given by the RAM available:
There is a sample Java UI available for installing the firmware: GD32F-Firmware-Update-UI