Welcome Guest Search | Active Topics | Sign In | Register

Downloader use of filestream Options
Jon Miller
Posted: Wednesday, April 6, 2011 1:38:53 PM
Rank: Member
Groups: Member

Joined: 4/23/2009
Posts: 23
I currently use a buffer for dynamic downloads....i.e write( buffer,0, buffer.Length)
I want to generate the data from Microsoft Chart ASP.net which uses

Chart1.SaveImage( filestream , ChartImageFormat.jpg );

will the dynamic downloader suppot the file stream object.

Thanks in advance,
Jon
eo_support
Posted: Wednesday, April 6, 2011 2:17:37 PM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,066
Hi,

No. The Downloader currently won't take Stream directly. You will need to write the code to read your stream and then call Write method on your DynamicDownloadContent object to write the contents out. The reason that we do not take stream directly is because some streams maybe never-ending (such as a network stream), supporting a Stream object would give user the impression that it would work with any stream while in fact the Downloader will only work with streams that can reaches an end.

Thanks!


You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.