Im trying to resize an image. I have the original file and then try to resize it and save it to a new image.
However, I get an exception because the value of stream cannot be null. This makes sense, but I dont know how to prevent it:
Value cannot be null.
Parameter name: stream
Description: An unhandled exception occurred during
the execution of the current web request. Please review the stack trace
for more information about the error and where it originated in the
code.
Exception Details: System.ArgumentNullException: Value cannot be null.
Parameter name: stream
Source Error:
Line 395:
Line 396: Dim toStream As System.IO.Stream
Line 397: thumbnailBitmap. ...
Go to the complete details ...