Create temp file before converting because passing data stream don't always work