question

$$anonymous$$ avatar image
0 Likes"
$$anonymous$$ Suspended asked

Adding multiple pictures.

 

            item.PictureDetails = new PictureDetailsType();

            item.PictureDetails.PictureURL = new StringCollection();

            item.PictureDetails.PictureURL.Add(pPix);

            item.PictureDetails.PictureURL.Add("http://i9.ebayimg.com/03/c/00/c1/51/8f_9.JPG");

 

I'm adding pictures in sandbox mode as shown above. I see the first image comes up as the title image but I do not see the second image.When I use the "Revise your item" link I see in the the pictures are this message "Your pictures: 1 | 0 more can be added". I am able to add more images manually.

 

Is there some problem with doing this in sandbox mode?

picturedetailsadd
· 2
10 |600 characters needed characters left characters exceeded

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

I have revised my code to upload the image first:

 

 

            //item Start Price
            AmountType amount = new AmountType();
            amount.Value = pPrice;
            amount.currencyID = CurrencyCodeType.USD;
            item.StartPrice = amount;
 
 
            item.PictureDetails = new PictureDetailsType();
            item.PictureDetails.PictureURL = new StringCollection();
            item.PictureDetails.PictureURL.Add(pPix);
 
            Samples sam = new Samples();
            string xpath = sam.UploadPictures(@"C:\Temp\profile250x250.jpg");
            string xpath2 = sam.UploadPictures(@"C:\Temp\profile2.jpg");
 
            item.PictureDetails.PictureURL.Add(xpath);
 
            // item variations- Variations not needed for Cookbook
            //item.Variations = buildVariationsType();
            return item;
 
 
I verified that I did indeed have a path and pulled up that path in my web broweser to see the image. I still however do not see my second image. It has not been associated with my item when I look uner myebay->selling.
 

0 Likes 0 ·

 

The path I got in xpath is:

 

http://i.ebayimg.sandbox.ebay.com/00/s/MjUwWDMzMw==/$(KGrHqNHJCME+,L)qcs5BQ(rg64(h!~~60_1.JPG?set_id=8800005007

 

I am wondering where did the image go? Is there someplace where I log in to see all the images that have been uploaded? Is that a temporary location?

0 Likes 0 ·

1 Answer

· Write an Answer
$$anonymous$$ avatar image
0 Likes"
$$anonymous$$ Suspended answered

At the risk of answering my own question. It was the sandbox mode. The code I have above works fine in production. I even pulled the "Sample" class off of the Knowledge Base. It works really well...

10 |600 characters needed characters left characters exceeded

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.