In the meantime, I found that in javascript you can use the same image again if you assign the first image to a var. Then you can reuse that var and the same image will appear on the screen. Therefore, with Javascript it's actually not a problem.
In our specific case we have to use the same image, that was loaded via the redirect url, in a java-applet. Then you get firstly the problem of security restrictions because the java applet will not be allowed to access an image from a server that it itself was not downloaded from. Secondly, if we would know how to access the JavaScript data from java we would be done, but we don't know how get the actual data from the browser into the applet.
The strange thing about this problem is, it cannot be much of a security problem, because we're just using the same data as is already in the browser, and the data is already there...
If you know anything about using javascript image data in a java applet, that would be superb.