Connecting Tech Pros Worldwide Forums | Help | Site Map

Want to print contents from System.io.memorystream

sagark's Avatar
Newbie
 
Join Date: Jan 2009
Location: Pune, India
Posts: 11
#1: Mar 16 '09
Hello All,

Need Help.

I have some contents in System.io.memorystrean object. I want to prite these contents on to page with something like response.write(..) but I am unable to print the contents from memory stream. Any idea?

Plater's Avatar
Moderator
 
Join Date: Apr 2007
Location: New England
Posts: 7,161
#2: Mar 16 '09

re: Want to print contents from System.io.memorystream


Read the data from the MemoryStream and then Write them?
sagark's Avatar
Newbie
 
Join Date: Jan 2009
Location: Pune, India
Posts: 11
#3: Mar 16 '09

re: Want to print contents from System.io.memorystream


Yes. I want to read the data and then want to write it on the page. But dont know the way.
Plater's Avatar
Moderator
 
Join Date: Apr 2007
Location: New England
Posts: 7,161
#4: Mar 16 '09

re: Want to print contents from System.io.memorystream


Look at the msdn help for it. MemoryStream is just a stream, you read from it like any other stream.
Frinavale's Avatar
Site Moderator
 
Join Date: Oct 2006
Location: The Great White North
Posts: 5,131
#5: Mar 16 '09

re: Want to print contents from System.io.memorystream


What is in your MemoryStream?

Pure text?
HTML text?
An Image?
Some other type of file?
Reply


Similar ASP.NET bytes