Jump to content

TUniImage : Unknown picture file extension (.nnn)


benoitclaeys

Recommended Posts

Hello,

 I try to load an image And I get this message :

 ...TUniImage : Unknonw picture file extension (.nnn)

 

On the server unit I define the DefaultImageformat = PNG

 

this error occur here in my code  :

 

procedure TUniFrameMainHome.UniFrameCreate(Sender: TObject);
begin
 try
  UniImageLogo.Picture.LoadFromFile(UniServerModule.StartPath + 'images\FrameHome\My Logo.PNG');
 except
 end ;
end;

 

 

 

 

Link to comment
Share on other sites

Drop TUniHTMLFrame with <img> html tag inside pointing to your image. Honestly I don't see any point in TUniImage component at all. It was probably added for easier migration of existing Delphi projects I guess. For new projects just use ordinary html, much fore flexibility.

Link to comment
Share on other sites

  • 5 months later...

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • Create New...