如何通过 Java 小程序在服务器上保存图像文件? [英] How to save an image-file on server through Java applet?

查看:24
本文介绍了如何通过 Java 小程序在服务器上保存图像文件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个作为 Java 小程序运行的绘图应用程序.我需要以任何图像格式(通常为 PNG)保存服务器计算机上画布的内容.请帮忙!

I have a paint application that runs as a Java applet. I need to save the contents of the canvas on server machine in any image-format typically PNG. Please help!

推荐答案

您可能对我为 Processing 编写的代码感兴趣,它基本上是 Java 代码.Re:保存到网络 --- 图像导出.在该线程的前面部分,我解释了对此类应用程序采取的一些预防措施(以避免恶意用户淹没服务器),并提供了相应的 PHP 代码.

You might be interested by the code I wrote for Processing, which is basically Java code. Re: save to web --- image export. Earlier in the thread I explain some precautions to be taken with such application (to avoid flooding a server from a malicious user) and I give the corresponding PHP code.

这篇关于如何通过 Java 小程序在服务器上保存图像文件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆