Please Help with webservice.

Ask a Question related to ASP.NET Web Services, Design and Development.

  1. #1

    Default Please Help with webservice.

    I get the file in the webservice like this.


    bImage = New Bitmap("C:\Inetpub\wwwroot\ima*ges\GR4001.PNG")
    'Save as PNG file
    bImage.Save(bFile,
    System.Drawing.Imaging.ImageFo*rmat.Png)
    'Return Binary file in a byte array
    Return bFile.GetBuffer()


    Now I call the webservice like this.


    Response.ContentType = "image/png"
    Set objHTTP = Server.CreateObject("Msxml2.Se*rverXMLHTTP")
    ' Point to an image file with adequate access permissions granted
    objHTTP.open "GET",
    "http://localhost/wsImage/wsImage.asmx/GetSpecimenImage", false
    objHTTP.send
    Response.BinaryWrite objHTTP.ResponseBody
    Set objHTTP = Nothing


    Nothing appears in the browser window but I get the binary back. Please

    Help

    klj_mcsd@hotmail.com Guest

  2. Similar Questions and Discussions

    1. Can a webservice call another webservice?
      Hi all, I want one WebService I have, say on a server in Los Angeles, to call methods I have in a 2nd WebService on another server, say in New...
    2. Calling a webservice from a webservice
      Well, I dont really want to call a webservice, but the class that I need is in a webservice and I dont see the need for serialization if I am...
    3. How to communicates with another webservice with another webservice
      H I have a task to write a webservice which communicates with another webservice and gets all the methods of that webservice So can i get those ...
    4. Webservice calling a webservice.....Error
      Hi Ihave a strange problem .....or?? On one machine 1 i have a webservice A calling an other webservice B on a other machine 2 . the B service are...
    5. webservice asp.net
      How do I call a webservice from a webapplication in ASP.NET?? I do not have any experience Can you recommenc me good books?? thank you
  3. #2

    Default Re: Please Help with webservice.

    <klj_mcsd@hotmail.com> wrote in message
    news:1121195894.734746.60820@g47g2000cwa.googlegro ups.com...
    > Nothing appears in the browser window but I get the binary back.

    Hi,

    you can use aspx page to return image data to the client. IMHO web service
    call won't work since the web service returns soap body in the HTTP stream
    and the img tag expects binary data instead.
    Look here for an example [1].

    [1] [url]http://www.csharp-station.com/Articles/Thumbnails.aspx[/url]

    HTH,

    --
    Martin Kulov
    [url]http://www.codeattest.com/blogs/martin[/url]

    MCAD Charter Member
    MCSD.NET Early Achiever
    MCSD

    Martin Kulov Guest

  4. #3

    Default Re: Please Help with webservice.

    Hi,
    maybe you could use DIME to transfer binary content thru web service. HTH
    "Martin Kulov" <kulov@bezbokluk.abv.bg> ha scritto nel messaggio
    news:%23LcxkI%23iFHA.3064@TK2MSFTNGP15.phx.gbl...
    > <klj_mcsd@hotmail.com> wrote in message
    > news:1121195894.734746.60820@g47g2000cwa.googlegro ups.com...
    >> Nothing appears in the browser window but I get the binary back.
    >
    >
    > Hi,
    >
    > you can use aspx page to return image data to the client. IMHO web service
    > call won't work since the web service returns soap body in the HTTP stream
    > and the img tag expects binary data instead.
    > Look here for an example [1].
    >
    > [1] [url]http://www.csharp-station.com/Articles/Thumbnails.aspx[/url]
    >
    > HTH,
    >
    > --
    > Martin Kulov
    > [url]http://www.codeattest.com/blogs/martin[/url]
    >
    > MCAD Charter Member
    > MCSD.NET Early Achiever
    > MCSD
    >

    Saverio Tedeschi Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139