How can I upload an image with multipart POST?

  • Автор темы Автор темы V Munich
  • Дата начала Дата начала

V Munich

Пользователь
Регистрация
20.02.2014
Сообщения
85
Реакции
3
Баллы
8
I need to upload a file from my multipart POST request, how can I do that?

I tried storing the contents of the .jpg file in a variable and using that variable in my POST request, so the result looked like this after it executed:

691363771f7aaa34e585a1e4b68c9b28.png


But it didn't work. Is this only possible with C#?
 
Is this only possible with C#?
 
I need to upload a file from my multipart POST request, how can I do that?

I tried storing the contents of the .jpg file in a variable and using that variable in my POST request, so the result looked like this after it executed:

691363771f7aaa34e585a1e4b68c9b28.png


But it didn't work. Is this only possible with C#?
Instead of unknown characters use path to file.

Example attached.
 

Вложения

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