473,398 Members | 2,212 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,398 software developers and data experts.

Asynchronously stream an image accross domains?

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.
Jun 27 '08 #1
1 780
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)
"ghause" wrote:
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.
Jun 27 '08 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: boclair | last post by:
Is this a known problem with IE6? I have a provisional two column layout, the left menu column is positioned absolute. The contents column is positioned relative. The contents column has an...
4
by: Jason | last post by:
How can I create a stream object from webservice that returns an image in byte format?
0
by: Jeff Lindholm | last post by:
I have a project that is capturing pictures from my web cam. I can save the image to a file and load it back from the file into my image control no problem. But I would like to either load it into...
11
by: Detlef Hüttenbach | last post by:
Whereas loading tiffs and pngs from file into an Image WebControl work, the images aren't shown when loaded from streams: In a WebForm, the image's property "ImageUrl" is set to a handler, and...
5
by: Dave A | last post by:
I have an application that does lots of socket communications all asynchronously via the TcpClient class. The code has been working 99.9999% of the time (yeah one of those bugs) but occasionally...
4
by: Lopamudra | last post by:
Hi, I am displaying thumbnails of images in the way Google does in its Image Search. i.e along with the details on the image height, width, size in KB and file type. I am using a http handler...
4
by: CptDondo | last post by:
I have an airlink101 ipcam. It "streams" jpeg images to a web browser. Basically, the camera sends a never-ending http page, and continually retransmits a jpeg image. This sort of works, but...
9
by: Denis | last post by:
Hello, Maybe somebody already solved this task. I need to load JS asynchronously without blocking browser. This means that I do not need to block browser to load/render during loading script. The...
0
by: RobUK | last post by:
We have Apache on the local network managing several websites that are accessed using virtual domains (configured in the local machine's hosts file, eg. 192.168.1.10 points to dev.somedomain.com). ...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.