Re: WebService Problem
From: Jan Tielens (jan_at_no.spam.please.leadit.be)
Date: 06/07/04
- Previous message: John Harrington: "re:ANN: Remote access to SourceSafe via web service."
- In reply to: deepak Arjun via .NET 247: "WebService Problem"
- Messages sorted by: [ date ] [ thread ]
Date: Mon, 7 Jun 2004 07:55:52 +0200
You may want to check out following article:
http://www.dotnetextreme.com/code/binaryupload.asp
If you still have problems, can you post more of your code?
-- Greetz Jan ________________ Read my weblog: http://weblogs.asp.net/jan "deepak Arjun via .NET 247" <anonymous@dotnet247.com> schreef in bericht news:%23DT7SSzSEHA.2988@TK2MSFTNGP09.phx.gbl... > Hi All > > I am creating webservice DocManager to store documents.I have a method > public void Uploadfile(string path,Stream instream) > where path is path of file on server and stream is stream of document. > I am able to compile it but when i write code to access it in client and compile the client it gives compile time error > Cannot convert from system.io.stream to DocManager.Stream > I feel the webservice exposes a stream object which is contradicting with it.I chnaged the function to > public void Uploadfile(string path,System.IO.Stream instream) > but it is still giving same error. > > I have made some changes in reference.cs file to remove conflict. > Now i am getting the error. > System.Web.HttpInputStream is inaccessible due to its protection level. Only public types can be processed > > How to solve this issue if someone has idea? > or is there a better approach to pass a file to webservice? > > > > -------------------------------- > From: deepak Arjun > > ----------------------- > Posted by a user from .NET 247 (http://www.dotnet247.com/) > > <Id>slDbwccmt0Og4iGl+MBgUA==</Id>
- Previous message: John Harrington: "re:ANN: Remote access to SourceSafe via web service."
- In reply to: deepak Arjun via .NET 247: "WebService Problem"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|