CGDevTools Forum

Welcome to the Official CGDevTools Support Community Forums.

LoadFromStream

by etwoss » 31 Oct 2015 20:28

Hi

I have a page which shows customer data and an image of the customer

My code:

Code: Select all
  if (FileExists(FFolder + IntToStr(UserSession.SelectedTrajectClient_ID) + '.jpg')) then
  begin
    FS := TMemoryStream.Create;
    FS.LoadFromFile(FFolder + IntToStr(UserSession.SelectedTrajectClient_ID) + '.jpg');
    IWCGJQImage2.Picture.LoadFromStream(FS);
    FS.Free;
  end;


i does not make a difference which user i choose, after the first one all other show the same image as the first one.

Caching?

Eric
etwoss
 
Posts: 1205
Joined: 06 Feb 2014 08:58

by assapan » 01 Nov 2015 09:20

hi ,
Just by setting
Code: Select all
IWCGJQImage2.Picture.CacheName:=IntToStr(UserSession.SelectedTrajectClient_ID) ;
should solve your problem
Want to visit Ardeche http://leclosdelarc.fr/index.php
The Pont d’Arc Cavern http://en.cavernedupontdarc.fr
Image
User avatar
assapan
 
Posts: 600
Joined: 16 Dec 2013 12:04
Location: France

by Alexander Bulei » 02 Nov 2015 11:23

Hi Eric,

hi ,
Just by setting
CODE: SELECT ALL
IWCGJQImage2.Picture.CacheName:=IntToStr(UserSession.SelectedTrajectClient_ID) ;
should solve your problem


Or just enable the Picture.UserCache property.

Best Regards.
Group: Developers | Support Team

  • info [at] cgdevtools.com - General information
  • sales [at] cgdevtools.com - Sales department
  • support [at] cgdevtools.com - Product and Technical Support
User avatar
Alexander Bulei
Site Admin
 
Posts: 3635
Joined: 15 May 2012 08:52
Location: Mealhada, Portugal


Return to JQImage

Who is online

Users browsing this forum: No registered users and 1 guest

Contact Us.