Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
TIWDBImagem not reload de image
#1
Hi, after uploading an image using TIWFileUploader, I apply the image change on a ClientDataSet, however the TIWDBDImage does not change at run time. How can I solve this? Follow my code.



procedure TFrmConfiguracoes.IWFILEUPLOADERAsyncUploadCompleted(Sender: TObject;
  var DestPath, FileName: string; var SaveFile, Overwrite: Boolean);
begin
  inherited;
  FMsLogo.Clear;
  IWFILEUPLOADER.SaveToStream(FileName, FMsLogo);

  cdsLogo.Edit;
  cdsLogoLOGO.LoadFromStream(FMsLogo);
  cdsLogo.Post;

  SaveFile := False;
end;
Reply
#2
Hello, I was able to solve by moving the code for the OnSucess event
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)