Re: extra line drawn to blob
- From: "Peter Proost" <pproost@xxxxxxxxxxxxxxxxxx>
- Date: Wed, 15 Jun 2005 09:56:33 +0200
Hi just to let know I found then problem:
> > > img.Save(ms, img.RawFormat.Bmp)
if change that with this:
img.Save(ms, img.RawFormat.Jpeg)
the extra line isn't drawn in crystal reports
Greetz Peter
--
Programming today is a race between software engineers striving to build
bigger and better idiot-proof programs, and the Universe trying to produce
bigger and better idiots. So far, the Universe is winning.
"Peter Proost" <pproost@xxxxxxxxxxxxxxxxxx> schreef in bericht
news:efla9eXcFHA.3512@xxxxxxxxxxxxxxxxxxxxxxx
> Just to say it seems that it has got nothing to do with my save method,
> because if I load the image from the database it displays ok, it's just
not
> showing ok in crystal reports 9
>
> Greetz Peter
>
> --
> Programming today is a race between software engineers striving to build
> bigger and better idiot-proof programs, and the Universe trying to produce
> bigger and better idiots. So far, the Universe is winning.
>
> "Peter Proost" <pproost@xxxxxxxxxxxxxxxxxx> schreef in bericht
> news:udYuOKPcFHA.3504@xxxxxxxxxxxxxxxxxxxxxxx
> > I mean image not file
> > > Hi I got this code to read in a file to the database, if use it to
save
> a
> >
> > Sorry
> >
> > --
> > Programming today is a race between software engineers striving to build
> > bigger and better idiot-proof programs, and the Universe trying to
produce
> > bigger and better idiots. So far, the Universe is winning.
> >
> > "Peter Proost" <pproost@xxxxxxxxxxxxxxxxxx> schreef in bericht
> > news:uGyvsIPcFHA.2128@xxxxxxxxxxxxxxxxxxxxxxx
> > > Hi I got this code to read in a file to the database, if use it to
save
> a
> > > image from a picturebox to the database it works ok, but now I use it
to
> > > directly save a file to the database without loading the image in a
> > > picturebox and it also works but there's a black line drawn from
> > > coordinates(0,0) to coordinates(image.width,0) when I look at the blob
> > field
> > > using crystal reports 9, the line normaly isn't there.What am I doing
> > wrong?
> > >
> > > Dim ms As System.IO.MemoryStream
> > > Dim arrImg As Byte()
> > > Dim img As Bitmap
> > >
> > > If File.Exists(myPath) Then
> > > ms = New MemoryStream
> > > 'the next two lines are just to make sure everything is empty
> > > ms.Flush()
> > > arrImg = Nothing
> > >
> > > img = DirectCast(Image.FromFile(myPath), Bitmap)
> > > img.Save(ms, img.RawFormat.Bmp)
> > > arrImg = ms.GetBuffer()
> > > ms.Close()
> > > End If
> > >
> > > thanks in advance
> > > Peter Proost
> > >
> > > --
> > > Programming today is a race between software engineers striving to
build
> > > bigger and better idiot-proof programs, and the Universe trying to
> produce
> > > bigger and better idiots. So far, the Universe is winning.
> > >
> > >
> >
> >
>
>
.
- References:
- extra line drawn to blob
- From: Peter Proost
- Re: extra line drawn to blob
- From: Peter Proost
- Re: extra line drawn to blob
- From: Peter Proost
- extra line drawn to blob
- Prev by Date: Re: sound effects?
- Next by Date: Re: Underlying connection was closed, unable to connect
- Previous by thread: Re: extra line drawn to blob
- Next by thread: Confusion about interface
- Index(es):
Relevant Pages
|