Hi Paul,
The Payload in Kafka is a string, to transfer files you can use base64 encode and decode to file, so when you send the file, encode it to base64, and when you receive by your topic inside the microflow event you can decode base64 to file, you can find the needed action inside the community common module
https://marketplace.mendix.com/link/component/170
Thanks,
Nour