Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Handling binary data in VFP (FedEx Ship Manager API)
Message
 
To
All
General information
Forum:
Visual FoxPro
Category:
Third party products
Title:
Handling binary data in VFP (FedEx Ship Manager API)
Miscellaneous
Thread ID:
00690974
Message ID:
00690974
Views:
73
Has anyone implemented the FedEx Ship Manager API 6.75 or higher?

I'm having problems with the binary data being returned which is needed to print the shipping labels. I developed an application 3 years ago using the ShipAPI which used a GIF shipping label format but the new version of the API uses the PNG format. I can get the transaction to work in VB with the reply string that is returned from FedExAPITransaction() but I can't get it to work in VFP7. I think it has something to do with how VFP handles binary data because I can duplicate the problem in VB if I store the binary data to a textbox when it is returned and use the string contained in Textbox.Text when calling SaveLabelToFile().

I'm using the COM interface of the FedEx API and I've included some examples of the function calls that I mentioned above:
oFedExAPIClient = CREATEOBJECT("FedExAPIClient.FedExComAPI")
cReply = oFedExAPIClient.FedExAPITransaction(cUTI, cRequest, cURL, cPort)

oLabelExtensions = CREATEOBJECT("FDXLabelExtensions.LabelExtensions")
cShippingLabelFileName = oLabelExtensions.SaveLabelToFile(cRequest, cReply, cTemplatesPath, cLabelPath)

Thanks for the help.
Aaron
Next
Reply
Map
View

Click here to load this message in the networking platform