How can I use "http post" to post an image?

  • Автор темы Автор темы bluescharp
  • Дата начала Дата начала
You need to covert the image to a byte array first using the C# ImageConverter. Then pass it through and convert to base64string.

The resulting string can be passed into your POST request.

Код:
Развернуть Свернуть Копировать
http://www.dailycoding.com/Posts/convert_image_to_base64_string_and_base64_string_to_image.aspx
 

Кто просматривает тему: (Всего: 0, Пользователи: 0, Гости: 0)