How to get ImageStream from API
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
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