I have a program in vb6 that can create an xml file. There are two things that I am having
1. How to embed image to xml file/encode image to base64 string. Please tell me what are the
steps that needs to do first to encode image directly to base64.
2. Send xml file to url using POST method. I am really having problem with this as I
cannot tell if the xml has been successfully sent to the url.
And I think but not sure that it was not sent as I am getting a response text of
"No xml file to parse! Debug file written" when I tried to send the xml at this url
, but when I tried to change the url to any url
I got a response text in something html format.
Below are the lines of code that I used to send an xml:
RORS = 13056
Dim xmlHttp As New ServerXMLHTTP
Set xmlHttp = New ServerXMLHTTP
xmlHttp.Open "POST", "http://utility.gcdtech.com/propertyUpload.php
xmlHttp.setRequestHeader "Content-Type", "text/xml"
xmlHttp.SetOption 2, SXH_SERVER_CERT_IGNORE_ALL
If xmlHttp.ReadyState = 4 Then
If xmlHttp.Status = 200 Then
XML_Send = xmlHttp.responseText
Set XML_Send = xmlHttp.responseXML.xml
Every comments and suggestions are much appreciated.