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/albumID?imgmax=800
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 -~----------~----~----~----~------~----~------~--~---
