This project is read-only.

How to get url that can be embed into a web page?

Feb 28, 2008 at 6:23 AM
Edited Feb 28, 2008 at 6:28 AM

After uploading a photo using the LiveNet, how to get the photo's url that can be embed into a web page or blog? like

Feb 28, 2008 at 9:46 AM
If you look at the Sample Web Site that we have made in the source, you will see that the way to do it for now is to actually use an image handler, which you can use LiveNet for too. So in our example, we have:

Photo photo = m_photos.GetPhoto(new Uri(lbPhotos.SelectedItem.Value));
imgPhoto.ImageUrl = string.Format("./photo.lnet?url={0}&oh={1}", photo.PhotoPath, photo.Owner.UserId);

That will pull back the image and then display it in your webpage.

Feb 28, 2008 at 3:51 PM
Yes, but I don't know which has a good performance, image handler and the url like

Feb 28, 2008 at 4:56 PM
Unfortunately, there's not way of getting that type of link from the API. There are permalinks coming soon, but not sure what sort of performance you will get from them as I have yet to be able to play around with them.