This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.
1
Web Server - Ask For Help / Re: AI / machine learning
« on: August 11, 2025, 01:41:58 AM »
Hi Rupert,
Your question is ambiguous. Define more what your clients are asking for.
Are they asking for AI in the Clarion IDE? In your program? In something else?
If they want AI in your program, what sort of AI are they looking for? Programming? Image recognition? Something else?
Cheers
Bruce
Your question is ambiguous. Define more what your clients are asking for.
Are they asking for AI in the Clarion IDE? In your program? In something else?
If they want AI in your program, what sort of AI are they looking for? Programming? Image recognition? Something else?
Cheers
Bruce
2
Web Server - Ask For Help / Re: NT14 CLALIT2 - NetwebForm - Duplicate Record
« on: August 03, 2025, 06:28:26 PM »
Hi David,
Please post an example app & dict so I can duplicate here.
And which build of the DriverKit & NetTalk are you using?
Cheers
Bruce
Please post an example app & dict so I can duplicate here.
And which build of the DriverKit & NetTalk are you using?
Cheers
Bruce
3
Web Server - Ask For Help / Re: How to debug this slow request?
« on: August 03, 2025, 06:27:14 PM »
Hi Johan,
If it's the NEXT that takes the time, then your VIEW is likely doing a full table scan (perhaps multiple of them in TPS) to construct the VIEW. Post the View declaration here, the file declarations (for files included in the View) and also the contents of the View Filter.
Cheers
Bruce
If it's the NEXT that takes the time, then your VIEW is likely doing a full table scan (perhaps multiple of them in TPS) to construct the VIEW. Post the View declaration here, the file declarations (for files included in the View) and also the contents of the View Filter.
Cheers
Bruce
4
Web Server - Ask For Help / Re: How to debug this slow request?
« on: July 25, 2025, 05:08:46 AM »
These are just timer events in the NetTalk DLL.
They're unrelated to your issue.
My guess is that the reply to the browser is not completing. ie you have some code in the thread, after the drop down is populated, which delays the ending of the thread. In that case the connection is not closed, so the browser does not start processing the reply.
Cheers
Bruce
They're unrelated to your issue.
My guess is that the reply to the browser is not completing. ie you have some code in the thread, after the drop down is populated, which delays the ending of the thread. In that case the connection is not closed, so the browser does not start processing the reply.
Cheers
Bruce
5
Web Server - Ask For Help / Re: Webserver performance slow after restart
« on: July 22, 2025, 03:22:58 PM »
In the WebServer procedure, NetTalk extension, Performance tab (I think) there's an option along the lines of "save server state between runs".
In your system is this option on?
In your system is this option on?
6
Web Server - Ask For Help / Re: NET ERROR: Attempt to Redirect from HTTP to HTTPS - correct the URL [http://sesi
« on: June 30, 2025, 11:08:26 PM »
correct the URL [http://sesiro.cloudcover.insure/apiTotalPolicyRecalc] to [https://sesiro.cloudcover.insure/apiTotalPolicyRecalc]
7
Web Server - Ask For Help / Re: sending SMS via GSM Modem
« on: June 14, 2025, 11:15:58 PM »
more likely you'll use the WinEvent Serial Port functions.
It all depends on your SMS modem, and how it connects to the PC.
Cheers
Bruce
It all depends on your SMS modem, and how it connects to the PC.
Cheers
Bruce
8
Web Server - Ask For Help / Re: Api endpoint stream - how?
« on: May 22, 2025, 07:01:32 PM »
Hi Niels,
>> I have some static ftp files that I need to expose via a REST api.
are you over thinking this?
It sounds to me like you just put the static file in the web folder (or sub folder), then the client can just GET it (ie use a regular WebClient to Fetch the file.)
I'm not sure this needs to be in an API?
But assuming it does need to be an API;
Add a StringTheory object to the RETURNS tab of the API.
Put your file in there (probably Base64 encoded.)
>> I'm aware that I can BASE64 encode them but the client would prefer them as "files".
Hence my suggestion above that this is just a regular GET.
If you want more control, then check out the FileDownload (40) example. That has a generic "ServeDocument" procedure in the app for serving files.
An API method will return a JSON or XML response - and of course any binary in there would need to be appropriately encoded at the very least for Json or XML.
I recommend Base64 because that's easier.
Cheers
Bruce
Cheers
Bruce
>> I have some static ftp files that I need to expose via a REST api.
are you over thinking this?
It sounds to me like you just put the static file in the web folder (or sub folder), then the client can just GET it (ie use a regular WebClient to Fetch the file.)
I'm not sure this needs to be in an API?
But assuming it does need to be an API;
Add a StringTheory object to the RETURNS tab of the API.
Put your file in there (probably Base64 encoded.)
>> I'm aware that I can BASE64 encode them but the client would prefer them as "files".
Hence my suggestion above that this is just a regular GET.
If you want more control, then check out the FileDownload (40) example. That has a generic "ServeDocument" procedure in the app for serving files.
An API method will return a JSON or XML response - and of course any binary in there would need to be appropriately encoded at the very least for Json or XML.
I recommend Base64 because that's easier.
Cheers
Bruce
Cheers
Bruce
9
Web Server - Ask For Help / Re: Hide Webcam after photo is taken
« on: May 21, 2025, 05:52:31 PM »
>> as if the webcam is set to ALWAYS display no matter what the programmer (like me) is trying to do.
*how* are you trying to make it "not display" ?
*how* are you trying to make it "not display" ?
10
Web Server - Ask For Help / Re: Api endpoint stream - how?
« on: May 19, 2025, 07:20:40 PM »
Can you define a bit more what you mean by "stream" a PDF file?
Tell us a bit more abut the context for this, and how "streaming" would be different from the normal "serving" ?
cheers
Bruce
Tell us a bit more abut the context for this, and how "streaming" would be different from the normal "serving" ?
cheers
Bruce
11
Web Server - Ask For Help / Re: How to manipulate Camera PHOTO and display it
« on: May 13, 2025, 06:48:18 AM »
I think you're over thinking this.
The Take Photo button takes the photo, and sends it to the server.
So you can process it however you like on the server.
The browser really only needs to update the displayed picture after processing.
We can chat in the webinar if you need more ideas.
Cheers
Bruce
The Take Photo button takes the photo, and sends it to the server.
So you can process it however you like on the server.
The browser really only needs to update the displayed picture after processing.
We can chat in the webinar if you need more ideas.
Cheers
Bruce
12
Web Server - Ask For Help / Re: Avoid downloaded file been served from browser cache
« on: May 13, 2025, 06:45:39 AM »
try
p_web.HeaderDetails.ContentDisposition = 'attachment; filename="'& CLIP(Loc:DownloadFileName) &'"'
p_web.HeaderDetails.CacheControl = 'no-store, no-cache, must-revalidate, private,post-check=0, pre-check=0, max-age=0'
p_web.HeaderDetails.ContentDisposition = 'attachment; filename="'& CLIP(Loc:DownloadFileName) &'"'
p_web.HeaderDetails.CacheControl = 'no-store, no-cache, must-revalidate, private,post-check=0, pre-check=0, max-age=0'
13
Web Server - Ask For Help / Re: Avoid downloaded file been served from browser cache
« on: May 13, 2025, 06:44:16 AM »
first you need to determine if it's coming from the local client cache, or the server cache.
(Both the browser, like Chrome or Edge) and the NetTalk server can cache files.
There are headers you can set when serving the file to indicate it's uncacheable. (You can google for that if you like, or look in netweb.clw.)
Alternatively you can alter the URL - by adding a random parameter. For example;
capesoft.com\somefile.saf?r=123
is different from
capesoft.com\somefile.saf?r=321
So simple by adding a parameter (which the server happily ignores) with a random value, the client won't get it from cache.
Obviously though it depends on how they are seeing the URL in the first place to download the file.
Cheers
Bruce
(Both the browser, like Chrome or Edge) and the NetTalk server can cache files.
There are headers you can set when serving the file to indicate it's uncacheable. (You can google for that if you like, or look in netweb.clw.)
Alternatively you can alter the URL - by adding a random parameter. For example;
capesoft.com\somefile.saf?r=123
is different from
capesoft.com\somefile.saf?r=321
So simple by adding a parameter (which the server happily ignores) with a random value, the client won't get it from cache.
Obviously though it depends on how they are seeing the URL in the first place to download the file.
Cheers
Bruce
14
Web Server - Ask For Help / Re: MObile device (Phone) @media screen and (max-width: 600px) FONT SIZE question
« on: May 08, 2025, 06:04:41 PM »15
Web Server - Ask For Help / Re: Webclient with certificat
« on: May 08, 2025, 06:03:43 PM »
Not sure if this is helpful - but see NetDemo, NetWebClient, "Secure HTTPS Options" tab, Client Certificate option.
If you can get it working from there, you'll be golden.
Cheers
Bruce
If you can get it working from there, you'll be golden.
Cheers
Bruce