Re: WebService Problem

From: Jan Tielens (jan_at_no.spam.please.leadit.be)
Date: 06/07/04

  • Next message: [MSFT]: "RE: GetExecutingAssembly().Location and DLL called by WebService"
    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>
    

  • Next message: [MSFT]: "RE: GetExecutingAssembly().Location and DLL called by WebService"

    Relevant Pages

    • WebService Problem
      ... where path is path of file on server and stream is stream of document. ... 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) ...
      (microsoft.public.dotnet.framework.aspnet.webservices)
    • WebService problem
      ... where path is path of file on server and stream is stream of document. ... 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) ...
      (microsoft.public.dotnet.xml)
    • Re: WebService problem
      ... A you cannot transfer a stream via a Web service. ... > I am creating webservice DocManager to store documents.I have a method ... > compile the client it gives compile time error ...
      (microsoft.public.dotnet.xml)
    • Re: constructor problem
      ... > compile because it's riddled with syntax errors. ... /*This is the tester class for testing the specialAccount2 object ... private String customerName; ... public void setAmountOwing{ ...
      (comp.lang.java.help)
    • Stream and IDisposable in C#2.0, design blunder (well, 100-year sleep is more like it)
      ... public class Stream: ..., IDisposable { ... public void Dispose; ... It prevents polymorphic disposing of Stream instances through s).Dispose. ... Have a look at some ways to *try* to implement a Stream which needs a custom dispose: ...
      (microsoft.public.dotnet.languages.csharp)