Date:  06/10/2016 06:14:27 AM Msg ID:  004837
From:  Martin Martin Thread:  004834
Subject:  Re: send pdf from vfp9 to foxweb script
I found it,
lcPDFile=STRCONV(lcPDFile, 11)  && Converts UTF-8 characters in cExpression to double-byte characters.
thank you
Sent by FoxWeb Support on 06/09/2016 01:33:18 PM:
Why are you wrapping the file data in XML? You should be sending it as multipart/form-data instead. Check out for some sample code (in VB), showing you how to upload the data. 
On the server side, you should be using FoxWeb's specialized APIs to get the file content (see the upload.fwx sample script). 
FoxWeb Support Team email
Sent by Martin Martin on 06/09/2016 06:53:33 AM:
Here is my try : 

CODE -->

lcFileToSend = FILETOSTR(PDFfile)
lcLink = ""
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 


CODE -->

xmlDoc = CREATEOBJECT("Msxml2.DOMDocument.3.0")
lcXML = xmlDoc.XML
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