How can I save an image file to the server via a Java applet?

I have a drawing application that works like a Java applet. I need to save the content of a canvas on a server machine in any image format, usually PNG. Please, help!

+1


source to share


2 answers


You may be interested in the code I wrote for Processing, which is mostly Java code. Re: save to web --- export images . Earlier in the thread, I explain some of the precautions to take with such an application (to avoid flooding the server from a malicious user), and I give the corresponding PHP code.



+1


source


You need to do two things:



What are you using on the server? PHP? Rails? JSP? .NET?

+3


source







All Articles