Asynchronously stream an image accross domains?

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • =?Utf-8?B?Z2hhdXNl?=

    Asynchronously stream an image accross domains?

    Is Webclient.downl oadDataAsync the best way to achieve this?

    I'd like to write an asynchronous handler that can return a byte array, but
    I'm not sure what *Begin and *End methods would be best suited to this.

    My goal here is to stream images through a proxy server whose uri is served
    from an external web service. If you think I am headed in the wrong
    direction, please let me know.
  • =?Utf-8?B?YnJ1Y2UgYmFya2Vy?=

    #2
    RE: Asynchronously stream an image accross domains?

    there are two async callbacks you need to do.

    1) async connection open, BeginGetRespons e() off the webrequest
    2) async read: BeginRead off the ResponseStream

    the second async handler woulle be setup in the first async handler.


    -- bruce (sqlwork.com)


    "ghause" wrote:
    Is Webclient.downl oadDataAsync the best way to achieve this?
    >
    I'd like to write an asynchronous handler that can return a byte array, but
    I'm not sure what *Begin and *End methods would be best suited to this.
    >
    My goal here is to stream images through a proxy server whose uri is served
    from an external web service. If you think I am headed in the wrong
    direction, please let me know.

    Comment

    Working...