Hello all,
I have a local VFP9 desktop application monitoring a folder for new PDF file.
I try to send PDF file, from the local VFP9 application to a script on a web server running FoxWeb?
LOCAL PROGRAM :
SERVER SITE:
When I save the file on the server side, and try to open the PDF, it’s empty (blank white PDF page).
When I look at the source of the PDF received and compare it to the original, it’s look like the “CharSet” is different. it's Like a translation as been made from the original.
Can you help me.
thank you
Martin
I have a local VFP9 desktop application monitoring a folder for new PDF file.
I try to send PDF file, from the local VFP9 application to a script on a web server running FoxWeb?
LOCAL PROGRAM :
Code:
lcFileToSend = FILETOSTR(PDFfile)
oXML=CREATEOBJECT("msxml2.xmlhttp.3.0")
lcLink = "[URL unfurl="true"]http://www.website.com/getpdf.fwx"[/URL]
oXML.Open("POST", lcLink , .f., "", "")
lcFile='<?xml version="1.0"?>' + crlf
lcFile=lcFile + "<root>" + crlf
lcFile=lcFile + "<Customer>" + crlf
lcFile=lcFile + config.customer + crlf
lcFile=lcFile + "</Costumer>" + crlf
lcFile=lcFile + "<textFileName>" + crlf
lcFile=lcFile + lcFullFileName + crlf
lcFile=lcFile + "</textFileName>" + crlf
lcFile=lcFile + "<textFileRAW>" + lcFileToSend + "</textFileRAW>" + crlf
lcFile=lcFile + "</root>"
lcResult = oXML.Send(lcFile)
lcResult = oXML.responseText
SERVER SITE:
Code:
xmlDoc = CREATEOBJECT("Msxml2.DOMDocument.3.0")
xmlDoc.LoadXML(Request.Form())
lcXML = xmlDoc.XML
lcPDFile=GetInXml(“textFileRAW”)
STRTOFILE(lcPDFile , "receivec.pdf")
...
When I save the file on the server side, and try to open the PDF, it’s empty (blank white PDF page).
When I look at the source of the PDF received and compare it to the original, it’s look like the “CharSet” is different. it's Like a translation as been made from the original.
Can you help me.
thank you
Martin