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
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,200
|
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!
|