Thanks @samliew,
this could work, but requires a separate operation. I prefer the solution of using the toString function, which is also mentioned here: How to download a file that requires authentication - #4 by Callinetic
But in case this doesn’t work under any circumstances, I have your solution in mind.
Thanks a lot!