G
Guest
Can someone please help! I have an error in the following bit of code and would appritiate any help
Thanks
System.Drawing.Bitmap outputImage = new System.Drawing.Bitmap(origBitmap, newWidth, newHeight)
System.IO.MemoryStream io = new System.IO.MemoryStream()
outputImage.Save(io, Server.MapPath(basePath + System.IO.Path.GetFileName(_FileName.Value)),System.Drawing.Imaging.ImageFormat.Jpeg)
Response.BinaryWrite( io.GetBuffer() )
outputImage.Dispose()
...::ERROR::.
Compiler Error Message: CS1502: The best overloaded method match for 'System.Drawing.Image.Save(System.IO.Stream, System.Drawing.Imaging.ImageCodecInfo, System.Drawing.Imaging.EncoderParameters)' has some invalid arguments
Thanks
System.Drawing.Bitmap outputImage = new System.Drawing.Bitmap(origBitmap, newWidth, newHeight)
System.IO.MemoryStream io = new System.IO.MemoryStream()
outputImage.Save(io, Server.MapPath(basePath + System.IO.Path.GetFileName(_FileName.Value)),System.Drawing.Imaging.ImageFormat.Jpeg)
Response.BinaryWrite( io.GetBuffer() )
outputImage.Dispose()
...::ERROR::.
Compiler Error Message: CS1502: The best overloaded method match for 'System.Drawing.Image.Save(System.IO.Stream, System.Drawing.Imaging.ImageCodecInfo, System.Drawing.Imaging.EncoderParameters)' has some invalid arguments