Y
Y
Yurka Makarov2015-01-12 03:50:54
PHP
Yurka Makarov, 2015-01-12 03:50:54

How to pass image from c# to php?

There is a client written in c#, let's say he received a picture in the picturebox and saved it to the hard drive.
How to send this image to Server in php?

Answer the question

In order to leave comments, you need to log in

3 answer(s)
A
Alexander Aksentiev, 2015-01-12
@Sanasol

Obviously make a POST request with the file to the server.
Or code it somehow. In base64, for example, and pass it as text.

Y
yanchumak, 2015-01-12
@yanchumak

base64 is hell, there is an easier way
php.net/manual/ru/features.file-upload.post-method.php

A
AxisPod, 2015-01-14
@AxisPod

The Internet is full of ready-made solutions, apparently it was too lazy to search. HTTPWebRequest in hand and forward, you can send anything.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question