For full functionality of this site it is necessary to enable JavaScript.
Here are the instructions how to enable JavaScript in your web browser.

Knowledge base

Find the answer to your question

Advanced Search PView

Search terms
Search Type
Sort by

PHP sample for UploadSiteHostedPictures.

  • Answer ID 1092
  • Published 06/21/2007 10:38 PM
  • Updated 10/20/2013 06:41 AM
  • Permalink
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

File Attachments

How well did this answer your question?

Answers others found helpful

Print Email This Page Delicious Digg Facebook Reddit StumbleUpon Twitter