enanitotrist
Programmer
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] [afro] [afro]](/data/assets/smilies/afro.gif)
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] [afro] [afro]](/data/assets/smilies/afro.gif)