open temp file in binary mode (because not working at least under windows server 2003)
Merge pull request #1 from xlat/master

attach invalid picture file