Sorry I tried to simplify the explanation and it hasn't been a good idea.
What I'm actually trying to do is to be able to write the FPGA firmware to the FPGA flash using Ethernet. For what I have developed I can write/read/erase the memory using Ethernet, what I'm missing is a way to understand the data that I should write into the flash. It's more of a software problem than hardware.
I know that you can write a design into the flash using JTAG (and a .pof file) and I made some test with it. But now I need to be hable to do the same using Ethernet, for that I converted the .pof file in a .rpd, but I'm not understanding the contents of the file. As I'm already said, when I work with the FPGA each address seems to have 4 bytes, not only 1, and in the file it looks like each address is asigned a single byte. To manage the flash I'm using Altera On-Chip Flash IP Core.
Thanks.