Ver Mensaje Individual
  #5  
Antiguo 21-05-2015
Avatar de ecfisa
ecfisa ecfisa is offline
Moderador
 
Registrado: dic 2005
Ubicación: Tres Arroyos, Argentina
Posts: 10.508
Reputación: 36
ecfisa is a splendid one to beholdecfisa is a splendid one to beholdecfisa is a splendid one to beholdecfisa is a splendid one to beholdecfisa is a splendid one to beholdecfisa is a splendid one to beholdecfisa is a splendid one to behold
Hola mjjj.

Tratándose de XE5 tampoco tengo idea, pero intentá de este otro modo a ver si te resulta...
Código Delphi [-]
procedure BlobToImage(aDataSet: TIBCustomDataSet; const aFieldName: string; Image: TImage);
var
  Stream: TStream;
begin
  with aDataSet do
    if not FieldByName(aFieldName).IsNull then
    begin
      Stream := CreateBlobStream(FieldByName(aFieldName) , bmRead);
      try
        Image.Picture.Bitmap.LoadFromStream(Stream);
      finally
        Stream.Free;
      end;
    end;
end;

LLamada ejemplo:
Código Delphi [-]
procedure TForm1.Button1Click(Sender: TObject);
begin
  BlobToImage(IBQuery1, 'IMAGE', Image1);
end;

Saludos
__________________
Daniel Didriksen

Guía de estilo - Uso de las etiquetas - La otra guía de estilo ....
Responder Con Cita