i think you should have a look at uuencode and uudecode witch convert a file to a standard format known by win and *nix (this is uuencode) and you can have the file back with uudecode (c the man page) --------------------------------------------------