Hi,
Recently, I found an issue that when an image is corrupted, and we try to assign it to RadBinaryImage, we get error "Parameter is not valid". Thats OutOfMemory exception, seems .NET can't load image properly then. However, this cause ASP.NET application to throw an "unhandled" exception.
I wonder, if it was possible for telerik component to validate the image as it was assigned to it (like DataValue property) and throw an exception to indicate that assigned value is NOT a valid image. Currently, I have to load image, and if loads successfully, then I use my routine to convert the image to bytes and assign to DataValue property.
Though I see many threads on this topic "Parameter is not valid", as per I know, its "mysterious" ASP.net message and most of the time, caused by OutOfMemory exception. I wonder if this "check of validity of image" should be implemented in other controls of telerik, like reporting etc.
Thanks,
Sameers
Recently, I found an issue that when an image is corrupted, and we try to assign it to RadBinaryImage, we get error "Parameter is not valid". Thats OutOfMemory exception, seems .NET can't load image properly then. However, this cause ASP.NET application to throw an "unhandled" exception.
I wonder, if it was possible for telerik component to validate the image as it was assigned to it (like DataValue property) and throw an exception to indicate that assigned value is NOT a valid image. Currently, I have to load image, and if loads successfully, then I use my routine to convert the image to bytes and assign to DataValue property.
Though I see many threads on this topic "Parameter is not valid", as per I know, its "mysterious" ASP.net message and most of the time, caused by OutOfMemory exception. I wonder if this "check of validity of image" should be implemented in other controls of telerik, like reporting etc.
Thanks,
Sameers