golang 获取网络图片转[]byte
两行代码搞定获取网络图片
resp, _ := http.Get("http://pic.netbian.com/uploads/allimg/210423/224716-1619189236e4d9.jpg")
bytes, _ := ioutil.ReadAll(resp.Body)
两行代码搞定获取网络图片
resp, _ := http.Get("http://pic.netbian.com/uploads/allimg/210423/224716-1619189236e4d9.jpg")
bytes, _ := ioutil.ReadAll(resp.Body)