skip to Main Content

I tried to upload my picture but it didn’t work. I know sandbox doesn’t support photos but I mean inside the sandbox listing there is main photo. Other sellers have a main photo so there must be a way.

My code compiles without an error but there just isn’t a photo when I go to the sandbox. Here is the code I’m using:

apiCall.PictureFileList = new StringCollection();
apiCall.PictureFileList.Add(@"C:UsersDannyDesktopdeleteMeBiggerEbayPic.jpg");
item.PictureDetails = new PictureDetailsType();
item.PictureDetails.GalleryType = GalleryTypeCodeType.Gallery;

2

Answers


  1. Chosen as BEST ANSWER

    I decided to try the original code again and to my surprise it worked. Maybe I did something wrong but I cant be bothered checking, its working now. Here is the code:

                //Set the Picture Server URL for Sandbox 
                apiContext.EPSServerUrl = "https://api.sandbox.ebay.com/ws/api.dll";
                //For production use this URL 
                //context.EPSServerUrl = "https://api.ebay.com/ws/api.dll"; 
    
    
                //Set file path of the picture on the local disk  
                apiCall.PictureFileList = new StringCollection();
    
                apiCall.PictureFileList.Add(@"C:UsersDannyDesktopMyGalleryPicOnHardDrive.jpg");
    
                //To specify a Gallery Image 
                item.PictureDetails = new PictureDetailsType();
                //The first picture is used for Gallery URL 
                item.PictureDetails.GalleryType = GalleryTypeCodeType.Gallery;
    
                //To add more pictures 
                //apiCall.PictureFileList.Add(@"C:TEMPpic2.gif");
    

  2. Afaik you can’t upload pictures from your local hard-drive using the eBay SOAP API. You need to sepcify a public URL where eBay can download the image from.

    BTW: The sandbox supports photos, the only thing it doesn’t support are gallery images.

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search