base64Binary is not type Q, it's type C . Check function STRCONV() and second parameter - values 13 and 14.
lcFileData=FILETOSTR("anyfile.zip")
lcB64=STRCONV(lcFileData,13)
?LEFT(lcB64,100)
MartinaJ
>Gang,
>
>I'm trying to call a web service that requires me to pass the contents of a zipped XML file as base64Binary. I think that they type of a base64Binary in VFP is "Q".
>
>I retrieve the contents of the file and compress it so that I have a string TYPE() = "C". Now, how do I get it into base64Binary "Q" so that the web service can accept it?
>
>Thanks in advance for any suggestions!
>
>Steve