dotty
dotty

Reputation: 41433

Send BitMap object (and some other strings) via POST to a server

how would i go about sending a BitMap objects (and some other strings, such as name = "kevin") to a server? Does anyone have any examples on how to do this?

Upvotes: 1

Views: 103

Answers (1)

SJuan76
SJuan76

Reputation: 24780

I assume that you mean an image in bitmap format.

Just encode the bytes with Base64Encoder and pass it as just another POST parameter, and use Base64Decoder to get the original contents back.

Upvotes: 2

Related Questions