Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
I try using
Media m = new Media(nodeID)
and umbraco.library.GetMedia(nodeID)
I'm still having a problem with the GetMedia as it is returning this text
0-/media/11176/flora_grand_thumbnail.jpg60602551jpg
I read that in the 4.5 media cache is already included. How can I use that?
var media = umbraco.library.GetMedia(id, false);if (media != null && media.Current != null){ media.MoveNext(); return new MediaValues(media.Current);}
From: http://shazwazza.com/post/Ultra-fast-media-performance-in-Umbraco.aspx
do you happened to know the namespace for examine? I can't find it.
I found it...
is working on a reply...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
How to use media cache in the API
I try using
Media m = new Media(nodeID)
and umbraco.library.GetMedia(nodeID)
I'm still having a problem with the GetMedia as it is returning this text
0-/media/11176/flora_grand_thumbnail.jpg60602551jpg
I read that in the 4.5 media cache is already included. How can I use that?
var media = umbraco.library.GetMedia(id, false);
if (media != null && media.Current != null)
{
media.MoveNext();
return new MediaValues(media.Current);
}
From: http://shazwazza.com/post/Ultra-fast-media-performance-in-Umbraco.aspx
do you happened to know the namespace for examine? I can't find it.
I found it...
is working on a reply...