DotNetNewsgroup.com  
web access to complete list of Microsoft.NET newsgroups
   home   |   control panel login   |   archive  |  
 
  carried group
academic
adonet
aspnet
aspnet.announcements
aspnet.buildingcontrols
aspnet.caching
aspnet.datagridcontrol
aspnet.mobile
aspnet.security
aspnet.webcontrols
aspnet.webservices
assignment_manager
datatools
dotnet.distributed_apps
dotnet.general
dotnet.myservices
dotnet.nternationalization
dotnet.scripting
dotnet.security
dotnet.vjsharp
dotnet.vsa
dotnet.xml
dotnetfaqs
framework
framework.clr
framework.compactframework
framework.component_services
framework.controls
framework.databinding
framework.drawing
framework.enhancements
framework.interop
framework.odbcnet
framework.performance
framework.remoting
framework.sdk
framework.setup
framework.webservices
framework.windowsforms
framework.wmi
frwk.windowsforms.designtime
lang.csharp
lang.jscript
lang.vb
lang.vb.controls
lang.vb.data
lang.vb.upgrade
lang.vc
lang.vc.libraries
  
 
start date: Mon, 13 Aug 2007 10:50:26 -0700,    posted on: microsoft.public.dotnet.framework.aspnet        back       

Thread Index
  1    Scott Elgram
          2    sloan
          3    Eliyahu Goldin
                 4    Scott Elgram


System.Drawing & Tiff images   
Hello everyone,
    I'm hoping someone here can pose an alternative that might work better
than what I have created so far.  I have a web site that needs to deal with
Multi-Page TIFF images.  Primarily they need to be split by page or group of
pages and uploaded into a DB.  The code I have currently works alright but
it throws a "Parameter is not valid." error on the line containing this code
"using (Bitmap source = new Bitmap(imgFile)) {...}".  From what I have been
able to find it would appear the "System.Drawing" class is "Unsafe" for web
applications and even though it does work most of the time this unusual
behavior is the result of the class not being designed or tested for use in
this type of scenario.

Thanks,
-- 
-Scott
Date:Mon, 13 Aug 2007 10:50:26 -0700   Author:  

Re: System.Drawing & Tiff images   
http://www.bobpowell.net/generating_multipage_tiffs.htm

I don't know if that helps or not, but when I have an image issue, bob 
powell's site is the FIRST one I check.


I've used System.Drawing in web apps before.  Outside of speed/performance, 
I haven't had issues.





"Scott Elgram"  wrote in message 
news:OfetqKd3HHA.1168@TK2MSFTNGP02.phx.gbl...

> Hello everyone,
>    I'm hoping someone here can pose an alternative that might work better
> than what I have created so far.  I have a web site that needs to deal 
> with
> Multi-Page TIFF images.  Primarily they need to be split by page or group 
> of
> pages and uploaded into a DB.  The code I have currently works alright but
> it throws a "Parameter is not valid." error on the line containing this 
> code
> "using (Bitmap source = new Bitmap(imgFile)) {...}".  From what I have 
> been
> able to find it would appear the "System.Drawing" class is "Unsafe" for 
> web
> applications and even though it does work most of the time this unusual
> behavior is the result of the class not being designed or tested for use 
> in
> this type of scenario.
>
> Thanks,
> -- 
> -Scott
>
> 
Date:Mon, 13 Aug 2007 14:42:40 -0400   Author:  

Re: System.Drawing & Tiff images   
I second both points:

1. Bob Powell's site is the first to check.

2. I use System.Drawing all the time with no problems.

-- 
Eliyahu Goldin,
Software Developer & Consultant
Microsoft MVP [ASP.NET]
http://msmvps.com/blogs/egoldin


"sloan"  wrote in message
news:%23MRI7md3HHA.1204@TK2MSFTNGP03.phx.gbl...

> http://www.bobpowell.net/generating_multipage_tiffs.htm
>
> I don't know if that helps or not, but when I have an image issue, bob
> powell's site is the FIRST one I check.
>
>
> I've used System.Drawing in web apps before.  Outside of

speed/performance,

> I haven't had issues.
>
>
>
>
>
> "Scott Elgram"  wrote in message
> news:OfetqKd3HHA.1168@TK2MSFTNGP02.phx.gbl...
> > Hello everyone,
> >    I'm hoping someone here can pose an alternative that might work
better
> > than what I have created so far.  I have a web site that needs to deal
> > with
> > Multi-Page TIFF images.  Primarily they need to be split by page or
group
> > of
> > pages and uploaded into a DB.  The code I have currently works alright
but
> > it throws a "Parameter is not valid." error on the line containing this
> > code
> > "using (Bitmap source = new Bitmap(imgFile)) {...}".  From what I have
> > been
> > able to find it would appear the "System.Drawing" class is "Unsafe" for
> > web
> > applications and even though it does work most of the time this unusual
> > behavior is the result of the class not being designed or tested for use
> > in
> > this type of scenario.
> >
> > Thanks,
> > -- 
> > -Scott
> >
> >
>
>
Date:Mon, 13 Aug 2007 23:41:02 +0200   Author:  

Re: System.Drawing & Tiff images   
Thanks guys,
some of his code is very different from mine so I'll have to make some
changes and see what happens.
Sorry it took so long for me to reply

-Scott

"Eliyahu Goldin"  wrote in
message news:OCnc6le3HHA.5852@TK2MSFTNGP02.phx.gbl...

> I second both points:
>
> 1. Bob Powell's site is the first to check.
>
> 2. I use System.Drawing all the time with no problems.
>
> -- 
> Eliyahu Goldin,
> Software Developer & Consultant
> Microsoft MVP [ASP.NET]
> http://msmvps.com/blogs/egoldin
>
>
> "sloan"  wrote in message
> news:%23MRI7md3HHA.1204@TK2MSFTNGP03.phx.gbl...
> > http://www.bobpowell.net/generating_multipage_tiffs.htm
> >
> > I don't know if that helps or not, but when I have an image issue, bob
> > powell's site is the FIRST one I check.
> >
> >
> > I've used System.Drawing in web apps before.  Outside of
> speed/performance,
> > I haven't had issues.
> >
> >
> >
> >
> >
> > "Scott Elgram"  wrote in message
> > news:OfetqKd3HHA.1168@TK2MSFTNGP02.phx.gbl...
> > > Hello everyone,
> > >    I'm hoping someone here can pose an alternative that might work
> better
> > > than what I have created so far.  I have a web site that needs to deal
> > > with
> > > Multi-Page TIFF images.  Primarily they need to be split by page or
> group
> > > of
> > > pages and uploaded into a DB.  The code I have currently works alright
> but
> > > it throws a "Parameter is not valid." error on the line containing
this
> > > code
> > > "using (Bitmap source = new Bitmap(imgFile)) {...}".  From what I have
> > > been
> > > able to find it would appear the "System.Drawing" class is "Unsafe"
for
> > > web
> > > applications and even though it does work most of the time this
unusual
> > > behavior is the result of the class not being designed or tested for
use
> > > in
> > > this type of scenario.
> > >
> > > Thanks,
> > > -- 
> > > -Scott
> > >
> > >
> >
> >
>
>
Date:Thu, 16 Aug 2007 12:32:54 -0700   Author:  

Google
 
Web dotnetnewsgroup.com


COPYRIGHT ?2005, EUROFRONT WORLDWIDE LTD., ALL RIGHT RESERVE  |   Contact us