Hey,
I was following the example for using a binary image with a listview to display images etc. allowing users to upload, and edit them.
The code is great except in the event the user uploads a bad image, during postback when the listview is displayed it blows up and throws errors saying the binary data is corrupted.
I know there should be a way to grab hold of the data during the ItemDataBound event, and catch the error, and ignore it or substitute the image with something stored on the website like a badimage.jpg
can someone help with this thanks
I was following the example for using a binary image with a listview to display images etc. allowing users to upload, and edit them.
The code is great except in the event the user uploads a bad image, during postback when the listview is displayed it blows up and throws errors saying the binary data is corrupted.
I know there should be a way to grab hold of the data during the ItemDataBound event, and catch the error, and ignore it or substitute the image with something stored on the website like a badimage.jpg
can someone help with this thanks