1-888-365-2779
+1-888-365-2779
Try Now
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
    Registered:
    28 Dec 2012
    26 Feb 2013
    Link to this post

    Hello,

    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
    Registered:
    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:

    http://www.telerik.com/help/aspnet-ajax/upload-manipulating-files.html


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

    http://www.telerik.com/community/forums/aspnet-ajax/upload/saving-the-image-uploaded-in-radupload-to-file-system.aspx


    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