technology as-is

May 3, 2005
by gchandra
0 comments (vb) write to Memory Stream

imports System.Io imports System.Text Sub Download Dim mstream As New MemoryStream() lxmlDoc.LoadXml(ldstOutPut.GetXml) mstream = Generatefile() ‘ Dim bytearray() As Byte bytearray = mstream.ToArray mstream.Flush() mstream.Close() Response.Clear() ‘ Add a HTTP header to the output stream that specifies the default filename … Continue reading