How to get ImageStream from API

Posted by Community Admin on 04-Aug-2018 17:51

How to get ImageStream from API

All Replies

Posted by Community Admin on 26-Feb-2013 00:00

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

Posted by Community Admin on 01-Mar-2013 00:00

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:

www.telerik.com/.../upload-manipulating-files.html

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

www.telerik.com/.../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

This thread is closed