Uploading files over WCF using "content-type" encoding

I would like to upload GZIP files over WCF. Doing so I would like to use some sort of additional parameter such as "HTTP content encoding" to tell the server what to do with a certain file type.

I am already using mimeType to tag the actual file, but in some cases (file size) I need to ZIP the file and send it over. Doing so i would like to tag this action using proper and valid parameter.

PS: The actual file is being send as byte[].

Can someone give me an example of doing this the proper way?


Solved it by sending string over to the server. On the server I created ENUM with acceptable values.

Need Your Help

Bloomberg APIv3 returning Slow Consumer Warnings

c# api bloomberg

I made a program in c# based on the example SubscriptionWithEventHandlerExample of API After subscribing to about 500 securities for realtime data, I receive some ADMIN event warnings clai...

Getting NVIDIA OpenCL to work on OpenCV 2.4.10

c++ opencv visual-studio-2013 opencl

I am trying to get a sample OpenCL code from OpenCV directories to work. The sample code is "squares.cpp":