Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I send Images to php web service?

I want to send my image to php web service. I convert image in bytcode and try to send it to web service but php web service want my image in file formate so please tell me how can I make my image in file formate and send it to php web service.

like image 758
Nirav Avatar asked Nov 14 '22 19:11

Nirav


1 Answers

You need to perform a file upload with multipart data, see Upload files with HTTPWebrequest (multipart/form-data) for a example.

like image 169
Claus Jørgensen Avatar answered Dec 24 '22 12:12

Claus Jørgensen