Hi,
I'm having trouble writing all of a large string to a text file. I have an pdf encoded in MIME's base 64 included in an xml file which I need to store temporarily. I think the problem may be a limit on the capacity of the StreamWriter class but I'm not sure. Here's what I have:
Public Function readPDF(ByVal filename As String) As Boolean
Dim d As New XmlDocument()
Dim sw As New StreamWriter("/temp.txt")
d.Load(filename)
Dim nl As XmlNodeList
nl = d.GetElementsByTagName("Formatted-Report")
sw.Write(nl(0).InnerText)
Return True
End Function
Any help greatly appreciated.
I'm having trouble writing all of a large string to a text file. I have an pdf encoded in MIME's base 64 included in an xml file which I need to store temporarily. I think the problem may be a limit on the capacity of the StreamWriter class but I'm not sure. Here's what I have:
Public Function readPDF(ByVal filename As String) As Boolean
Dim d As New XmlDocument()
Dim sw As New StreamWriter("/temp.txt")
d.Load(filename)
Dim nl As XmlNodeList
nl = d.GetElementsByTagName("Formatted-Report")
sw.Write(nl(0).InnerText)
Return True
End Function
Any help greatly appreciated.