Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What is the best way to transfer an image via a webservice in C#?

What is the best way to transfer an image in C#?

  • Bitmap object
  • Byte array
  • Image Object?
like image 652
mouthpiec Avatar asked Jul 24 '10 15:07

mouthpiec


1 Answers

There is no single "best" way. If there were, then there would probably be only one way. It really depends on your situation, needs, and priorities.

That said, I use Base64 encoding every chance I get because it's fun and easy! :)

like image 143
Greg D Avatar answered Sep 29 '22 20:09

Greg D