ciao volevo sapere se dal lato client tramite applicazione win è possibile inserire in un txtbox il file letto è inviato dal web servizio
questo è il codice lato server.

per il client
mioservizio.GetFileStream(txtbox1.text)


codice:
 <WebMethod()> _
    Public Function GetFileStream(ByVal filespec As String) As String
       
        filespec = "C:\w\log.txt"

        Dim fullpath As String = Path.GetFullPath(filespec)
        Dim ext As String = Path.GetExtension(fullpath)
        Dim ContentType As String = ""

        Select Case ext
            Case ".pdf"
                ContentType = "Application/pdf"

            Case ".asf"
                ContentType = "video/x-ms-asf"

            Case ".avi"
                ContentType = "video/avi"

            Case ".doc"
                ContentType = "application/msword"

            Case ".txt"
                ContentType = "text/plain"

            Case ".zip"
                ContentType = "application/zip"

            Case ".xls"
                ContentType = "application/vnd.ms-excel"

            Case ".gif"
                ContentType = "image/gif"

            Case ".jpg", "jpeg"
                ContentType = "image/jpeg"

            Case ".wav"
                ContentType = "audio/wav"

            Case ".mp3"
                ContentType = "audio/mpeg3"

            Case ".mpg", "mpeg"
                ContentType = "video/mpeg"

            Case ".rtf"
                ContentType = "application/rtf"

            Case ".htm", "html"
                ContentType = "text/html"

            Case ".asp"
                ContentType = "text/asp"

            Case Else
                ContentType = "application/octet-stream"

        End Select


        My.Response.ContentType = ContentType
        '   My.Response.TransmitFile(filespec)
        My.Response.WriteFile(filespec)
        My.Response.Flush()
        My.Response.End()

        Return filespec

    End Function