ImageEn for Delphi and C++ Builder ImageEn for Delphi and C++ Builder

 

ImageEn Forum
Profile    Join    Active Topics    Forum FAQ    Search this forumSearch
Forum membership is Free!  Click Join to sign-up
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 ImageEn Library for Delphi, C++ and .Net
 ImageEn and IEvolution Support Forum
 Tiff is not getting back all the images
 New Topic  Reply to Topic
Author Previous Topic Topic Next Topic  

eballinas

Mexico
37 Posts

Posted - Oct 14 2022 :  13:44:49  Show Profile  Reply
When I run this procedure, the image in the database has 4 images. It is only giving me 1 image.
What am I doing wrong?

procedure TfrmObras.DocumentosdeObrasTbAfterOpen(DataSet: TDataSet);
var
    flujo:tstream;
begin
    if not documentosdeobrastb.IsEmpty then
    try
        lasfotos.clear;
        flujo:=tmemorystream.Create;
        flujo:=documentosdeobrastb.CreateBlobStream(DocumentosdeObrasTbIMAGENDELDOCUMENTO,bmRead);
        flujo.position:=0;
        lasfotos.mio.LoadFromStreamTIFF(flujo);
    finally
        flujo.Free;
    end;


end;

xequte

38608 Posts

Posted - Oct 14 2022 :  16:05:00  Show Profile  Reply
Hi

Almost certainly the image in the database is only single frame. Output the field blob to a file (directly without saving as an image) to confirm.

Nigel
Xequte Software
www.imageen.com
Go to Top of Page

eballinas

Mexico
37 Posts

Posted - Oct 14 2022 :  16:28:08  Show Profile  Reply
I did it. Files are multi image...
Go to Top of Page

xequte

38608 Posts

Posted - Oct 16 2022 :  20:35:13  Show Profile  Reply
And if you load the saved file using: lasfotos.mio.LoadFromFileTIFF(...); do you still only get one page?

Nigel
Xequte Software
www.imageen.com
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
Jump To: