Changes since
the last release

com.ebay.sdk.pictureservice
Interface PictureService

All Known Implementing Classes:
eBayPictureServiceXMLCall

public interface PictureService

Defines object that uploads pictures to EPS server and get the uploaded URLs back.

Title:

Description:

Copyright: Copyright (c) 2008

Company: eBay Inc.

Version:
1.1
Author:
Weijun Li, changed by William Yang

Method Summary
 boolean uploadPicture(PhotoDisplayCodeType option, PictureInfo picInfo)
          Upload one picture file to EPS server.
 int uploadPictures(PhotoDisplayCodeType option, PictureInfo[] picInfoList)
          Upload list of picture files to EPS server.
 boolean UpLoadSiteHostedPicture(PictureInfo picInfo, UploadSiteHostedPicturesRequestType request)
          Upload one picture file to EPS server, this interface is for those who want to operate on UploadSiteHostedPicturesRequestType directly.
 UploadSiteHostedPicturesResponseType uploadSiteHostedPictures(UploadSiteHostedPicturesRequestType request)
           
 

Method Detail

uploadSiteHostedPictures

UploadSiteHostedPicturesResponseType uploadSiteHostedPictures(UploadSiteHostedPicturesRequestType request)

UpLoadSiteHostedPicture

boolean UpLoadSiteHostedPicture(PictureInfo picInfo,
                                UploadSiteHostedPicturesRequestType request)
Upload one picture file to EPS server, this interface is for those who want to operate on UploadSiteHostedPicturesRequestType directly.

Parameters:
picInfo - Contains the local picture file path, uploading error, response object and URL if the uploading succeeded.
request - the UploadSiteHostedPicturesRequestType object.
Returns:
true means the uploading succeeded. Otherwise check picInfo for detailed error information.

uploadPicture

boolean uploadPicture(PhotoDisplayCodeType option,
                      PictureInfo picInfo)
Upload one picture file to EPS server.

Parameters:
option - The PhotoDisplayCodeType option.
picInfo - Contains the local picture file path, uploading error, response object and URL if the uploading succeeded.
firstImage - If this is the first image for the particular item, the picture generated will be different based on if this is the first image for the item or not.
Returns:
true means the uploading succeeded. Otherwise check picInfo for detailed error information.

uploadPictures

int uploadPictures(PhotoDisplayCodeType option,
                   PictureInfo[] picInfoList)
Upload list of picture files to EPS server.

Parameters:
option - The PhotoDisplayCodeType option.
picInfoList - List of PictureInfo objects. Each object contains the local picture file path, uploading error, response object and URI if the uploading succeeded.
Returns:
Number of pictures that have been successfully uploaded. Loop through picInfoList for individual uploading error.

Changes since
the last release

The information contained in this document is proprietary and confidential. Use of this information and the eBay API requires a Non-Disclosure Agreement (NDA) between the user and eBay Inc. For information regarding a qualifying NDA, contact Developer Relations: developer-relations@ebay.com
© 2004-2009 eBay Inc. All rights reserved.