Last post Jun 20, 2013 04:05 PM by michael_md
Jul 30, 2011 01:43 PM|Trancedified1|LINK
We're using a third party component that only takes in group 3 and group 4 compression as expressed in code as:
The error from the subject line happens during the System.Drawing.Image.Save() method. My web app works fine on my local machine, but not when it's deployed to the web server.
I'm using .NET 4.0 VS 2010 and loading my files via:
Dim originalImage = Image.FromFile(Server.MapPath(sDestinationPath))
Is there a quick solution to this?
Jul 30, 2011 06:21 PM|Shuvo Aymon|LINK
Please have a look at below link
Is your image is valid one? which format of image you are using?
Aug 01, 2011 10:08 AM|Trancedified1|LINK
Sorry I wasn't as descriptive. I'm using a .Tif. The image is valid (ie it can be opened and viewed by any image app). I saw your link and yes, I'm already using server.mappath. I think I would have gotten another error like "path not found" if my save path
Any other ideas?
Aug 01, 2011 12:23 PM|Trancedified1|LINK
I solved this on my own as I was dealing with a System.Drawing.Image vs. a System.Drawing.Bitmap.
Aug 01, 2011 12:59 PM|Shuvo Aymon|LINK
congratulations. Sorry was out and din't c your previous post on time. Best of luck.
Jun 20, 2013 04:05 PM|michael_md|LINK
I realise this is nearly two years old, but can you provide any more details on how you solved this? I'm experiencing identical symptoms when trying to save an image - works on my local machine, but not on the webserver. Nothing as of yet has worked.