Upload a gif to internal flash of ESP32 using WiFi and Bluetooth

I want to send a gif via WiFi and Bluetooth and have it saved in the internal flash with SPIFFS filesystem and displayed in a 64x64 P3 RGB matrix.

I am using the ESP32-HUB75-MatrixPanel-DMA library and in its example there is one that plays gif, where the gif is loaded using a plug-in in the arduino IDE, I want an android to be able to send the gif through wifi and bluetooth and that this gif can be saved in the internal falsh, what part would I have to add to the code and how would the application do the above?

The code i use