Hi all,

Not sure if the question has been asked.  Here is my scenario:

I have hundreds of thousands photo in the process of uploading to
Picasa (just paid $5 for 20G last week).  Have successfully written a
PHP script to upload images and create albums automatically.  But the
biggest problem now is the high failure rate.

About 20%-25% of the images upload failed.  The error messages are
"Read timed out after 10 seconds", "Expected response code 200, got
500",  or "STORAGE_UNAVAIL".  In order to push the speed, I even have
multiple windows uploading the photos into different albums.  The more
windows I used (i.e., the more simultaneously uploading), the higher
the failure rate is.  Currently, I can upload about 1000 photos in
about 1.5 hour.  To me, that is very slow  The image size of the photo
is about 200 kb in average.

I want to know if there is any way to reduce the upload failure.  What
about:

1. use multiple uplink paths (i.e. using multiple ISPs)?
2. create another picasa account?
3. using Java, instead of Zend?
4. am I asking too much as I have already reached the limit of Picasa?

Any help is appreciated!

Here is the code for uploading the images:

$fd = $gp->newMediaFileSource($file);
$fd->setContentType("image/jpeg");
$photoEntry = $gp->newPhotoEntry();
$photoEntry->setMediaSource($fd);
$photoEntry->setTitle("sometitle");
$photoEntry->setSummary("somesummary");

// add some tags
$keywords = new Zend_Gdata_Media_Extension_MediaKeywords();
$keywords->setText("sometag");
$photoEntry->mediaGroup = new Zend_Gdata_Media_Extension_MediaGroup();
$photoEntry->mediaGroup->keywords = $keywords;

// We insert the photo, and the server returns the entry representing
// that photo after it is uploaded
$insertedEntry = $gp->insertPhotoEntry($photoEntry, $albumQuery-
>getQueryUrl());
$mediaContentArray = $insertedEntry->getMediaGroup()->getContent();
$contentUrl = $mediaContentArray[0]->getUrl();

Thanks

Kenneth

-- 
You received this message because you are subscribed to the Google Groups 
"Google Picasa Web Albums API" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/google-picasa-data-api?hl=en.

Reply via email to