Asynchronously stream an image accross domains?

G

ghause

Is Webclient.downloadDataAsync 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.
 
B

bruce barker

there are two async callbacks you need to do.

1) async connection open, BeginGetResponse() 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)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,175
Messages
2,570,942
Members
47,490
Latest member
Finplus

Latest Threads

Top