• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 270
  • Last Modified:

stream

i want to convert this part of line to C#. but it seems that C# does not have reset in streaming. any help?

ByteArrayOutputStream.reset();
0
DWR200
Asked:
DWR200
1 Solution
 
DarkoLordCommented:
What kind of stream do you have? What would you like to accomplish with the Reset method?
0
 
DhaestCommented:
I think that's it's replace by .Seek

ByteArrayOutputStream.Seek(0,System.IO.SeekOrigin.Begin);
0
 
ToFroCommented:
Stream objects in C# have a method called Flush, I think that's what you're looking for. Set the length of the Stream object to 0 before doing the flush.

Check this out:
http://msdn2.microsoft.com/en-us/library/by9w64x0(VS.80).aspx
0

Featured Post

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now