What is the most efficient way to send the file to .net web service?

I am just wondering what would be the most efficient way to send the file (.png, .gif, .exe ) to the .net web services. In particular I need to send picture from Java mobile app to .net web service.

I can set the Content-Type to multipart/mixed from my Java mobile app to be able to send picture, but what about .net web service? How can I forcer web service get it using multipart/mixed Content-Type? It seems for me that .net web service Content-Type set in default to application/x-www-form-urlencoded and it wants me to send data as String.

Thanks a lot in advance for help

Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories