I have written a Web Service that interacts with a COM component to extract
a file from another system. Basically the Web Service accepts a part number
and a rev and extracts the file to a subfolder of the Web Service. What is
the best way to get this file to the client?
The client is a web application that's being written in C#. What I'd like
to be able to do is to return the file in the same manner as it would be if
a hyperlink to the file were clicked on (With the usual "File Download - Do
you want to open or save this file?" dialog). Sorry, but that's the best I
can do to describe the effect I want, hopefully everyone understands what I
mean.
I know that I can return it as a byte array which can be re-assembled on the
client side, but I'm not the one developing the client app and I don't know
what flexibility they have there. It would be nice if they could call the
Web Service from say, a button click, and just have the file open. By the
way, in case it matters, these will all be pdf files.
Any help would be appreciated.
Alan Sloan