使用C#和webRequest发布图片 [英] post a picture using C# and webRequest
本文介绍了使用C#和webRequest发布图片的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我有以下python代码如何通过webservice发布图片:
product_image = requests.post('https://client.planorama.com/ tapi / v1 / product_image /',
data = {'product_id':1784682},files = {file:open(my_image.jpg,'rb')})
任何人都可以帮我在C#中做同样的事情,
I have the following python code how to post a picture through webservice:
product_image = requests.post('https://client.planorama.com/tapi/v1/product_image/',
data={ 'product_id': 1784682 }, files={ "file": open(my_image.jpg, 'rb') } )
Can anyone help me to do the same thing in C#,
推荐答案
这篇关于使用C#和webRequest发布图片的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文