• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 2040
  • Last Modified:

Best way of passing binary data over ASP.NET web service

I would like to send binary data (files from a document management system)  over an ASP.NET Web service.  I am programming in C#. I assume I would have to use a stream and convert it to a byte array and pass that. Possibly not the most efficient way because of the encoding overhead?  The files could be quite big which also could be a problem. I have also heard of DIME, but not looked into it so far.

Appreciate any suggestions and experience with this.
0
valox
Asked:
valox
1 Solution
 
YiogiCommented:
Have you tried sockets? If the file is large I wouldn't send it with calls to the web service I'd use TCP sockets instead. You can also compress it and then send it over a socket and decompress it when you receive it.
0
 
valoxAuthor Commented:
I settled for passing data as stream. Not efficient, but acceptable in terms of responsetimes.
0

Featured Post

The new generation of project management tools

With monday.com’s project management tool, you can see what everyone on your team is working in a single glance. Its intuitive dashboards are customizable, so you can create systems that work for you.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now