image on utft using flash ic

i am using 5' ssd1963 glcd +adapter shield arduino mega2560

and successfully wrote on flash ic W25Q128FVSSIG using MicroSD card

now how to write flash ic using serial port instead of MicroSD card?

Go on. I presume that you read blocks of memory from SD and wrote the blocks to the SPIFlash chip.
You could read the filesize. So you knew how much to read.

It would be the same with Serial. You have to know how much to read. Then read from Serial.

Fine for a few hundred bytes. One glitch on Serial and a multi-megabyte transfer is ruined.
I presume you are getting Serial from a phone or radio link. You need some form of error correction.

It is safer to write regular files to SD card on your PC. And copy from SD to SPIFlash.

David.

How cam i wrote .raw or .bmp file in flash
I am completely new in flash ic i dont know how to work on this all
I am using flash ic on utft SSD1963 5' for displaying image
I was able to use one of the library which write flash using sd card
But now i am not able to find any resources for serial write