Re: extra line drawn to blob



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.
> > >
> > >
> >
> >
>
>


.



Relevant Pages

  • Re: Client IP behind Load Balancer
    ... and the Universe trying to produce bigger and better idiots. ... So far, the Universe is winning. ... > BigIP as its default gateway. ... >> Programming today is a race between software engineers ...
    (microsoft.public.inetserver.iis)
  • Re: faster rotate and resize of images
    ... Programming today is a race between software engineers striving to build ... bigger and better idiots. ... So far, the Universe is winning. ... > is it just me or does anybody else find the Image.RotateFlip method kind ...
    (microsoft.public.dotnet.languages.vb)
  • Re: Which Source Code Control
    ... Hi, I just did some more testing with sourcegear vault, and it seems to do ... Programming today is a race between software engineers striving to build ... bigger and better idiots. ... So far, the Universe is winning. ...
    (microsoft.public.dotnet.languages.vb)
  • Re: Loading Crystal report
    ... 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. ...
    (microsoft.public.dotnet.languages.vb)
  • Re: number of lines in Richtextbox
    ... bigger and better idiots. ... So far, the Universe is winning. ... > Programming today is a race between software engineers striving to build ...
    (microsoft.public.dotnet.languages.vb)

Quantcast