Well if you are retrieving that feed, your method should work if you pull out the <media:content> links. I would think it would work even without the imgmax parameter, since it is your server directly downloading the photo then sending it to the user. Unless for some reason you aren't able to retrieve the <media:content> url (in which case let me know) then the problem is somewhere in that 'force download' method.
Unfortunately there isn't a handy "download link" or way to force the PWA interface to prompt the user to download an image. There is a feature request for this: http://code.google.com/p/gdata-issues/issues/detail?id=561 Cheers, -Jeff On Nov 21, 2:47 am, GaMaL <[EMAIL PROTECTED]> wrote: > So, do you mean I should include URL like that in the source attribute > or what > ?http://picasaweb.google.com/data/feed/projection/user/userID/albumid/... > > Is there a tweak to force download the image ? > > On Nov 20, 10:58 pm, "Jeff Fisher (Google)" <[EMAIL PROTECTED]> > wrote: > > > Hi, > > > If the image is bigger than 800 pixels that could be your problem: > > >http://code.google.com/apis/picasaweb/faq.html#embed_image > > > However, I would think that your method (retrieving the file to your > > server then writing it out to the client) should work. > > > Cheers, > > -Jeff > > > On Nov 20, 11:33 am, GaMaL <[EMAIL PROTECTED]> wrote: > > > > I'm trying to link to one of my album photos and I get 404 error > > > and once I refresh it works normally .. > > > img is loaded as simple as that .. > > > echo "<img src= "$img" />"; > > > where $img is variable that GETs the image path from request . > > > and once I reload the page it works ..! > > > > I used that way to let people to download the image, so if there a way > > > to force download it'll be nice .. > > > I also tried to pass the same path to file to force download using PHP > > > script here: > > > > if (file_exists($file)) { > > > header('Content-Description: File Transfer'); > > > header('Content-Type: application/octet-stream'); > > > header('Content-Disposition: attachment; filename='.basename > > > ($file)); > > > header('Content-Transfer-Encoding: binary'); > > > header('Expires: 0'); > > > header('Cache-Control: must-revalidate, post-check=0, pre- > > > check=0'); > > > header('Pragma: public'); > > > header('Content-Length: ' . filesize($file)); > > > ob_clean(); > > > flush(); > > > readfile($file); > > > exit;} > > > > ?> --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
