Hi! Also ich habe in C# einen Bild upload geschrieben (was sehr einfach war..). Jetzt möchte ich aber das Bild nicht als "Bild" posten (Da ich dieses ja dann vorher speichern muss.) sondern evtl. per BitmapToArray-Funktion das Bild in einen Byte Array konvertieren und direkt als Byte hochladen. Jetzt aber die Frage. Wie würde ich das ganze dann machen? Das ByteArray als string zum PHP "Server" posten? Oder gibts da auch nen anderen Weg?
EDIT:
BitmapToArray funktion:
EDIT2:
Ich uploade das Bild mit WebClient.UploadFileAsync:
MfG GooMan
EDIT:
Danke stackoverflow (stackoverflow.com/questions/38…using-multipart-form-data) & briangrinstead.com (briangrinstead.com/blog/multipart-form-post-in-c) gelöst.
EDIT:
BitmapToArray funktion:
EDIT2:
Ich uploade das Bild mit WebClient.UploadFileAsync:
MfG GooMan
EDIT:
Danke stackoverflow (stackoverflow.com/questions/38…using-multipart-form-data) & briangrinstead.com (briangrinstead.com/blog/multipart-form-post-in-c) gelöst.
Dieser Beitrag wurde bereits 2 mal editiert, zuletzt von „GooMan“ ()