- Home /
Question is off-topic or not relevant
How to save screenshots from webplayer on the fly via JSP-script to the users disk?
Hi,
i want to integrate a screenshot function in my unity webplayer game. The user clicks a button and can choose from a dialog where to save the image.
I´ve searched the unity documentation and it´s "Texture2D.EncodeToPNG" function. It works great after i´m using two further PHP scripts to open the save dialog.
Now the problem is that i can´t use PHP on my server. It´s a requirement from my client, so the only chance is to use JSP script language. The second problem is that i can´t upload and save the bytearray to that server. I need to create my image "on the fly" without saving anything temporary to the server.
Is that possible with JSP? Any ideas how do i get this thing done with JSP on the fly from a servlet?
After googling i found this link.. Any JSP pro user who have knowledge about that?
Would be great to get your help. Thanks for your time.