Welcome to the new platform of Programmers Heaven! We apologize for the inconvenience caused, if you visited us from a broken link of the previous version. The main reason to move to a new platform is to provide more effective and collaborative experience to you all. Please feel free to experience the new platform and use it's exciting features. Contact us for any issue that you need to get clarified. We are more than happy to help you.
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