hi.
I have been running this example,
[Solved] System.ArgumentNullException: Value cannot be null
running well no error,
but when i running on localhost i had have found error like his
Server Error in '/py' Application.
A generic error occurred in GDI+.
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.Runtime.InteropServices.ExternalException: A generic error occurred in GDI+. Source Error:
Line 133: Dim encoderParams As EncoderParameters = New EncoderParameters(1)
Line 134: encoderParams.Param(0) = encoderParameter
Line 135: inputImage.Save(path, imageCodecInfo, encoderParams)
Line 136: End Sub
Line 137:
|
error line is
Dim encoderParameter As EncoderParameter = New EncoderParameter(Encoder.Quality, quality)
Dim imageCodecInfo As ImageCodecInfo = Me.GetEncoderInfo("image/jpeg")
Dim encoderParams As EncoderParameters = New EncoderParameters(1)
encoderParams.Param(0) = encoderParameter
inputImage.Save(path, imageCodecInfo, encoderParams)
Thanks