Support

Kom i kontakt med vår kundtjänst, lär dig allt via vår SDK eller ladda ner den senaste uppdateringen.

ImageService

2010-12-10 07:51:00 Peter

 

I'm trying to use the ImageService. However, the code you have posted in the SDK seems to be obsolete. Model.BinaryContent seems to have been replaced with Model.Document?

Could you also post a more in depth explanation about how to use the ImageService? I couldnt figure out how BlopService relates to it? If possible, a whole code snippet would be nice!

 

All replies

  • 2010-12-14 21:13:16 Linus

    Yes, the SDK is a bit outdated, We will publish an updated version shortly... ImageService and BlobService are mainly used internally by Lemoon and there is normally no need to use them directly from your code. What are you trying to do? Maybe there is another way of accomplishing what you are after?

  • 2011-01-25 14:18:31 Stefan Bergfeldt

    I'm looking at the introduction video, and making my own content type. I've managed to create the content type, but I want to render thumbs from the images, which the video shows.

    However, since Model.BinaryContent isn't there, I don't know how to do that.

  • 2011-02-02 02:07:26 Pär Abrahamsson, Infobyte

    In version 4.3.0 Model.BinaryContent was renamed to Model.Document. There are also changes in the ContentService that probably will affect the sample in the SDK.

    Lemoon-staff: Wouldn't it be a good idea to mark the outdated SDK-samples with info about the fact that they are outdated until you have the time to update them? That would probably save some users a lot of time.

  • 2011-02-02 02:15:20 Pär Abrahamsson, Infobyte

    Sorry, read things in wrong direction. Just realised that you've already figured out the changes in the class structure.

  • 2011-02-03 22:03:53 Magnus Krona
    Stefan Bergfeldt wrote:

    I'm looking at the introduction video, and making my own content type. I've managed to create the content type, but I want to render thumbs from the images, which the video shows.

    However, since Model.BinaryContent isn't there, I don't know how to do that.


    Example:

    using Mindroute.Lemoon.Helpers;

    ...

    string thumb = ((Mindroute.Core.Model.Document)aContentItem).ThumbUrl(200, 200);

  • 2011-02-09 16:14:12 Stefan Bergfeldt

    How about in this context?

    <div class="functionInfo blogInfo" style="background-image: url(<%=entry.Image.Value.Url() %>);">