Maybe someone can help me out with the following problem. Im streaming a xml file(40mb) from sharepoint with client object model:
protected void Page_Load(object sender, EventArgs e)
{
FileInformation fileInfo = Microsoft.SharePoint.Client.File.OpenBinaryDirect(ccontext, listItem.File.ListItemAllFields["FileRef"].ToString());
XmlDocument xmldoc = xmlDocument1(fileInfo.Stream);
TextBox1.Text = xmldoc.Innerxml;
}
private XmlDocument xmlDocument1(Stream text1)
{
XmlDocument xdoc = new XmlDocument();
using (XmlReader xmlReader = XmlReader.Create(text1))
{
while (xmlReader.Read())
{
xdoc.Load(xmlReader);
}
xmlReader.Close();
}
return xdoc;
}
It takes to long to load de documents innerxml in to the textbox. Any ideas to make this faster?
Thanks