More in this section

Forums / Developing with Sitefinity / How to get ImageStream from API

How to get ImageStream from API

2 posts, 0 answered
  1. Andrew
    Andrew avatar
    15 posts
    28 Dec 2012
    26 Feb 2013
    Link to this post


    I want to do some custom thumbnail generation in my application.  I have successfully retrieved my Image object from the API.  How do I retrieve the Image's stream of binary data through the API?  Is this possible?  I'm hoping to reupload my own version of a thumbnail that crops the image as a square instead of maintaining the aspect ratio as it currently does.

    Thanks, Andy

  2. Victor Velev
    Victor Velev avatar
    1345 posts
    06 Jul 2015
    01 Mar 2013
    Link to this post
    Hi Andrew,

    Can you elaborate a bit more on how you have implemented the process of uploading the image? If you are using RadUpload you can use the InputStream property to gain access to the file contents. There is a useful article that contains code sample on this:

    There is a useful article that you can look at as well:

    All the best,
    Victor Velev
    the Telerik team
    Do you want to have your say in the Sitefinity development roadmap? Do you want to know when a feature you requested is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
2 posts, 0 answered