Thanks for the article but it doesn't seem to be working. I've tried every possible value of "nConversionSetting" and it's not converting the string into a value that I can use.
The COM object was created by FedEx as part of the Ship Manager API. It was written completely in Java. The binary data is used to create a shipping label in the PNG format.
Example code:
* This is how a transaction is processed. A string is returned containing the binary data for the shipping label.
oFedExAPIClient = CREATEOBJECT("FedExAPIClient.FedExComAPI")
cReply = oFedExAPLClient.FedExAPITransaction(cUTI, cRequest, cURL, cPort)
* This is how a label is created. It just takes the binary data and saves it as a PNG file using the tracking number as the file name (i.e. 470032320080.png).
oLabelExtensions = CREATEOBJECT("FDXLabelExtensions.LabelExtensions")
cFileName = oLabelExtensions.SaveLabelToFile(cRequest, cReply, cTemplatePath, cFedExPath)
FedEx doesn't support VFP but until this new version of the API, I haven't had a problem. Here's a link to the image that my VB app created (
http://ajacka.8m.com/470032320080_good.png) and the one that my VFP app created (
http://ajacka.8m.com/470032320080_bad.png).
Thanks for your help.
Aaron