Re: [Lazarus] Dear developers... TStream.ReadAnsiString

2008-09-06 Thread Joao Morais
Luiz Americo Pereira Camara wrote: > Osvaldo Filho wrote: >> Thanks for all. Sorry my insistence. >> >> Please see this code, it is original, it is in >> http://fpc64.firmos.at:8060/browse/Lazarus/trunk/lcl/include/dbimage.inc?r1=9243&r2=10681 >> >>

Re: [Lazarus] Dear developers... TStream.ReadAnsiString

2008-09-06 Thread Luiz Americo Pereira Camara
Osvaldo Filho wrote: > Thanks for all. Sorry my insistence. > > Please see this code, it is original, it is in > http://fpc64.firmos.at:8060/browse/Lazarus/trunk/lcl/include/dbimage.inc?r1=9243&r2=10681 > >

Re: [Lazarus] Dear developers... TStream.ReadAnsiString

2008-09-06 Thread Osvaldo Filho
Thanks for all. Sorry my insistence. Please see this code, it is original, it is in http://fpc64.firmos.at:8060/browse/Lazarus/trunk/lcl/include/dbimage.inc?r1=9243&r2=10681 See, here, line 161: 161+ GraphExt := s.ReadAnsiString; My picture is a jpeg image saved on a firebird database.

Re: [Lazarus] Dear developers... TStream.ReadAnsiString

2008-09-06 Thread Felipe Monteiro de Carvalho
If you want to convert raw data to a string you should assign the stream holding the data to a TStringStream. ReadAnsiString can only read data written with WriteAnsiString (or if you took care to imitate it's format). -- Felipe Monteiro de Carvalho __

Re: [Lazarus] Dear developers... TStream.ReadAnsiString

2008-09-06 Thread Michael Van Canneyt
On Sat, 6 Sep 2008, Osvaldo TCF - Listas wrote: > Environment: > Ubuntu 8.04.1 > XFCe > FPC 2.2.3 > Lazarus r16444 > GTK2 > -- > Problem: > Tstream.readansistring is not ok! > > affected: > > TDBImage > Lazreport > >

Re: [Lazarus] Dear developers... TStream.ReadAnsiString

2008-09-06 Thread Osvaldo TCF - Listas
Environment: Ubuntu 8.04.1 XFCe FPC 2.2.3 Lazarus r16444 GTK2 -- Problem: Tstream.readansistring is not ok! affected: TDBImage Lazreport procedure TForm1.Button3Click(Sender: TObject); var st