This is the return of a classic question : for transferring datas between two process, should we use "pipe" or "temporary file".
It was debated here, for reference : Pipe vs. Temporary File
Now, considering only UNIX system, that can use tmpfs or ramfs (RAM based filesystem), we can write temp files really fast.
In my specific case, data is 100Ko PNG image file.
What option would you prefer ?