Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

ServerXMLhttp and nodetypedvalue binary file. Out of memory?!?!

Status
Not open for further replies.

enanitotrist

Programmer
Sep 10, 2002
4
EU
Hi! I'm trying to read a binary file into a domdocument node. It is done via Adodb.stream object. I am using ASP. It works properly on small files, but when trying with large (+20MB) files, it does not work.
the idea behind this is to send the document to another server using serverxmlhttp. Some code here:


'xml_dom is a msxml4 domdocument object

set l_node1 = xml_dom.createElement("file1")
l_node1.dataType = "bin.base64"

'ado_strem is adodb.stream object

ado_stream.Type = 1 ' 1=adTypeBinary
ado_stream.Open()
ado_stream.LoadFromFile(FILENAME) l_node1.nodeTypedValue = ado_stream.Read(-1) ' -1=adReadAll

'xmlhttp is MSXML2.ServerXMLHTTP.4.0
xmlhttp.open "POST",SERVER & "RECEIVER.asp",false
xmlhttp.send(xml_dom)

and all this seems not to work with large files but does with small ones.
A not enough space error showed once. Any ideas on how to fix that?


Thanks a lot,
Alex [afro]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top