|
<< Click to Display Table of Contents >> Navigation: Telegram > 2022 > 08 > 10 > Telegram_2022-08-10T11 |
2022-08-10T11:00:12
Hi guys
2022-08-10T11:01:23
If I use below code, with IWDBImage it creates a download for the image no problem
2022-08-10T11:01:42
var OutDir := WebApplication.ApplicationPath + 'wwwroot\\cache\\';
var OutFileName := FormatDateTime('ddmmyyhhmmssss', Now) + '.jpg';
IWDBImage.Picture.SaveToFile(OutDir + OutFileName);
WebApplication.SendFile(OutDir + OutFileName, True, 'image/jpg', OutFileName);
2022-08-10T11:02:37
but problem is that changing the image with async on click requires a refresh of the page to display the new image
2022-08-10T11:03:47
If I use the IWBS4Image component async click changes the image with no problem, but the code to download the image produces a 0KB file
2022-08-10T11:04:11
Any pointers will be appreciated, regards