如何使用watir在blob字段中保存图像? [英] how to save image in blob field using watir?
本文介绍了如何使用watir在blob字段中保存图像?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
<table>
<tr>
<td>hello</td>
<td><img src="xyz.png" width="100" height="100"></td>
</tr>
</table>
我想将这个 xyz.png 以 blob 形式保存到我的数据库中,那么我如何以 blob
形式保存图像.
i want to save this xyz.png in blob form into my db, so how can i save image in blob
form.
推荐答案
img=cell.image.src
image = Net::HTTP.get_response(URI.parse(img)).body
这篇关于如何使用watir在blob字段中保存图像?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文