I don't see an obvious situation where that would fail. People pipe tar output, rsync, dd, etc, through ssh without issue. Stdin doesn't seem to have quoting issues, which is what you would expect.
The base64 in the parent post seems unneeded if you're passing through stdin/stdout.
The base64 in the parent post seems unneeded if you're passing through stdin/stdout.