lpc2138 ram issue

Hi There,

For my project, need to store a jpeg file about 80 kb size, coming in over UART, then being written to a uSD-G1 drive again over 2nd UART. Problem being, lpc2138 only has 32k ram, how do I go about getting my 80k file to my sd drive? I was hoping to receive the file over the first UART, hold it, write that file over the second, clear the ram, get the second file etc.

Any pointers, or links where I can find out, would be greatly appreciated, as I’ve hit a bit of a stumbling block.