문제

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.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top