Take a look at TinyFTP / TinyTCP.
I looked over the code some time ago, and it seems nicely done. But...
I'm not sure about the implications of using this in a commercial project.
I saw it. It was off topic over there. I'd have suggested you come over here
myself if someone else hadn't done so first.