瓦提尔图像处理
有没有办法在 Watir 中获取图像扩展名(基于内容类型标头)及其正文?
这是一个
require 'watir'
zz = Watir::IE.new
zz.goto('http://flickr.com')
image = zz.image(:src => %r/l.yimg.com\/g\/images\//)
puts image
我需要获取后一个图像的扩展名和内容(base64encoded 或只是临时文件的位置)的示例
Is there a way to get an image extension (based on the content-type header) and it's body in Watir?
Here is an example
require 'watir'
zz = Watir::IE.new
zz.goto('http://flickr.com')
image = zz.image(:src => %r/l.yimg.com\/g\/images\//)
puts image
I need to get extension and the contents (base64encoded or just location of a temp file) of the latter image
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)