use<br> JPEG;<br>var<br> Mem:TStream;<br> MJPEG: TJPEGImage;<br> Str:String;<br>begin<br> Str:='';<br> with DataSource1.DataSet do<br> begin<br> First;<br> while not Eof do<br> begin<br> if FieldByName('Filename').AsString=Str then<br> break;<br> Next;<br> MJpeg:=TJpegImage.Create;<br> Mem:=CreateBlobStream(FieldByName('Picture'),bmRead);<br> Mem.Position:=0;<br> MJpeg.LoadFromStream(mem);<br> self.Image1.Picture.Assign(MJpeg);<br> AJpeg.Free;<br> mem.Free;<br> end;<br>end;