2008年11月25日星期二

[fw-gdata] images not loading into website

Hi users,
 
All images retrieved by the getThumbnail works 100%
but when I want a full image and try to retrieve it using
the getContent() method then the image is not displayed`
the <img ... /> displays the correct widh and height border
but with no image.
 
the code I use is:
 
$query = $gp->newAlbumQuery();
$query->setUser("default");
$query->setAlbumId( $album );
$albumFeed = $gp->getAlbumFeed($query);
$album_name = $albumFeed->getTitle();
$w = $photoFeed->getGphotoWidth().getText(false);
if ( $w>600 )
{
 $w = 600;
}
echo "<table style='width:100%'>";
echo "<tr><td align='center' ><img width='".$w."' src='".$contentUrl."' alt='' /></td></tr>";
echo "<tr><td align='center'>
<a href='http://picasaweb.google.com/marino.peter/".$album_name."#".$photo_id." '>
Se billede fra Picasa albumet</a>
</td></tr>";
echo "</table>";
just to clarify the album and photo id's are correct, the link I create using
<a href='http://picasaweb.google.com/marino.peter/".$album_name."#".$photo_id." '>
works just fine.
 
this might be more a html/php problem then actually a gdata problem, but I'm kinda stuck
why this doesn't work,.. perhaps someone could show me the way?
 
regards,
Peter Wraae Marino

--
OSG-Help http://osghelp.com

没有评论: