Jump to content

Unigui run in Linux and JPEG


flexdev

Recommended Posts

Hi everyone
I am having problems to displaying jpeg images in TUniImage components in a application compiled for Linux 64 ,  if I load jpeg images I get error "Cannot assign a TJPEGImage to a TPicture"
The same code compiled below for Windows 32 or 64 bit runs perfectly.
The code is:

var _stm: TMemoryStream;
_stm: = TMemoryStream.Create;
DBField.SaveToStream (_stm);
_stm.Position: = 0;
UniImage.LoadFromStream (_stm);
FreeAndNil (_stm);

Where am i wrong?

Thanks in advance

Link to comment
Share on other sites

  • 2 years later...

Join the conversation

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

Guest
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...