For reading:
For writing:
For reading:
For writing:
Unfortunately I dont know java. I apologize if i am wrong, but looking at the code seems to me that no image file are involved. With text only is no problem.
It is google apps script (a variant of javascript), not java.
The alternative would be to setup the spreadsheet component with a service account so that you can write to a spreadsheet.