Jump to content

TUniImage : Unknown picture file extension (.nnn)


Recommended Posts


 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);
  UniImageLogo.Picture.LoadFromFile(UniServerModule.StartPath + 'images\FrameHome\My Logo.PNG');
 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...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


  • Create New...