如何以编程方式从浏览器保存图像 [英] How can I programmatically save an image from the browser
本文介绍了如何以编程方式从浏览器保存图像的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
这是示例图片: http://images .fanpop.com/images/image_uploads/sakura-naruto-sasuke-akatsuki-naruto-shippuuden-452719_1280_1024.jpg [
Here is a sample image: http://images.fanpop.com/images/image_uploads/sakura-naruto-sasuke-akatsuki-naruto-shippuuden-452719_1280_1024.jpg[^].
I want to programmatically save this image to my file system using Java.
推荐答案
您可以进行http发布,获取发送回的数据并将其写入teh.我希望文件系统.只要您知道路径.但是确定键入它们比右键单击并单击保存要花更多的工作吗?
You can do http posts, grab the data that is sent back, and write it to teh file system, I expect. So long as you know the paths. But surely typing them in is more work than right clicking and hitting save ?
这篇关于如何以编程方式从浏览器保存图像的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文