Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
SendFile inside a TIWCallbackProc3
#1
How can I have a WebApplication.SendFile(..) response into the TIWCallbackProc3 = reference to procedure (aParams: TStrings; out aResult: string; out aHandled: Boolean) callback?

I test for the request.
In some cases, I only have to assign aResult.
But in others, I have to run a download attachment.
The IW command is WebApplication.SendFile() / SendStream().
I assigned aHandled := true but I get "Uninitialized response" and no download starts.
So I added WebApplication.Response.Code := 200 so the error messages do not appears anymore, but no download starts.
Thank you.
Reply


Messages In This Thread
SendFile inside a TIWCallbackProc3 - by giorgio_c - 05-30-2023, 03:47 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)