Skip to main content
Published: June 21 2007, 10:38:00 PMUpdated: November 28 2020, 3:49:42 PM

PHP 5 sample of UploadSiteHostedPictures.

Detailed Description
This sample shows how to use the new UploadSiteHostedPictures
functionality. The sample requires the use of the PHP CURL and SimpleXML extensions.

Note that the sample reads in and uploads an image file in binary form. No base64 encoding is done.
There is a multi-part HTTP 1.0 POST. The first part contains the XML request, and the second part
contains the binary image data.



Additional resources
UploadSiteHostedPictures documentation

How well did this answer your question?
Answers others found helpful