how can I upload a binary file to a web service ???

  • Thread starter Thread starter genc ymeri
  • Start date Start date
G

genc ymeri

Hi,
I'm developing a fat client with C# while I need to upload a files 1-5 Mb to
a a webservice. Any sample or tip where to look ???

Thank You in advance.
 
You can use a byte array!
If your parameters are more than 4MB, you will need to do some changes
in the machine.config.
 
Just in case you're wondering what XML does with a byte array, this will be transformed by the marshalling layer into a Base64 encoded string for transmission

Regards

Richatrd Blewett - DevelopMentor
http://staff.develop.com/richardb/weblog

nntp://news.microsoft.com/microsoft.public.dotnet.languages.csharp/<[email protected]>

You can use a byte array!
If your parameters are more than 4MB, you will need to do some changes
in the machine.config.

genc ymeri said:
Hi,
I'm developing a fat client with C# while I need to upload a files 1-5 Mb to
a a webservice. Any sample or tip where to look ???

Thank You in advance.

---
Incoming mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.771 / Virus Database: 518 - Release Date: 28/09/2004



[microsoft.public.dotnet.languages.csharp]
 
Back
Top