Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我做了一个成功的应用程序,它在本地网络中截取电脑的屏幕截图,图像保存在计算机上的特定路径上,然后通过输出流发送到另一台计算机。但是,图像仍然在PC上。java中是否有任何函数可以删除发送后创建的图像?
发送图像后,调用file.delete()方法肯定可以正常工作,从您刚刚捕获的 PC 屏幕上删除图像。