Would be nice if you exactly document how you tried to use Tempfile and issues, so I'll give a chance ASAP :-)