41
Web Server - Ask For Help / Re: Api endpoint stream - how?
« Last post by urayoan on May 22, 2025, 04:47:30 AM »Hi Neil
And why not read the file, convert to base64 for transfer purposes and then decode and save it in the format the client want?
And why not read the file, convert to base64 for transfer purposes and then decode and save it in the format the client want?
42
Web Server - Ask For Help / Re: Hide Webcam after photo is taken
« Last post by rjolda on May 22, 2025, 02:06:17 AM »Hi Bruce,
My Webcam field (equate AON:ThisPicture) has the following hide statement:
Hide if Clarion: p_web.GSV('PhotoDone') ='YES'
I have the AON:ThisPicture value in the Reset box for TakePhoto button. The Take Photo button also sets: p_web.SSV('PhotoDone') ='YES')
Ron
My Webcam field (equate AON:ThisPicture) has the following hide statement:
Hide if Clarion: p_web.GSV('PhotoDone') ='YES'
I have the AON:ThisPicture value in the Reset box for TakePhoto button. The Take Photo button also sets: p_web.SSV('PhotoDone') ='YES')
Ron
43
Web Server - Ask For Help / Re: Api endpoint stream - how?
« Last post by Niels Larsen on May 22, 2025, 12:16:50 AM »I can see that it doesn't really make sense.
I'll try to make it a little clearer.
I have some static ftp files that I need to expose via a REST api.
I'm aware that I can BASE64 encode them but the client would prefer them as "files". This is where I'm a bit confused how to.
/Niels
I'll try to make it a little clearer.
I have some static ftp files that I need to expose via a REST api.
I'm aware that I can BASE64 encode them but the client would prefer them as "files". This is where I'm a bit confused how to.
/Niels
44
Web Server - Ask For Help / Re: Hide Webcam after photo is taken
« Last post by Bruce 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" ?
45
Web Server - Ask For Help / Re: Hide Webcam after photo is taken
« Last post by rjolda on May 21, 2025, 03:08:06 PM »Yes, I am refreshing it.
Ron
Ron
46
Web Server - Ask For Help / Re: Hide Webcam after photo is taken
« Last post by Alberto on May 21, 2025, 12:50:33 PM »Hi, are you refreshing the AON:ThisPicture control when pressing the TakePhoto Button?
47
Web Server - Ask For Help / Hide Webcam after photo is taken
« Last post by rjolda on May 21, 2025, 12:46:25 PM »Hi all,
Using NT14.21 , Clarion11.
I have a form with a Display Field - DisplayPhoto which displays the photo when the picture is taken.
On the same screen I have a TakePhoto button and a Webcam field which uses the environment Camera to take a photo (AON:ThisPicture) and display it in the DisplayPhoto field.
My TakePhoto Button has the embed:
p_web.SSV('PhotoDone', 'YES') ! we use this to display buttons - 1= we have taken picture -display ?Crop Photo button
this button is set to Reset the valued of AON:ThisPicture ( which is the field equate that stores the picture)
My Webcam field (equate AON:ThisPicture) has the following hide statement: p_web.GSV('PhotoDone') ='YES'
What I am finding is that the photo is taken and displays, the webcam display is gone and then the screen flickers and the webcam is back on display as if the webcam is set to ALWAYS display no matter what the programmer (like me) is trying to do.
Anyone with insights on this?
THanks,
Ron
Using NT14.21 , Clarion11.
I have a form with a Display Field - DisplayPhoto which displays the photo when the picture is taken.
On the same screen I have a TakePhoto button and a Webcam field which uses the environment Camera to take a photo (AON:ThisPicture) and display it in the DisplayPhoto field.
My TakePhoto Button has the embed:
p_web.SSV('PhotoDone', 'YES') ! we use this to display buttons - 1= we have taken picture -display ?Crop Photo button
this button is set to Reset the valued of AON:ThisPicture ( which is the field equate that stores the picture)
My Webcam field (equate AON:ThisPicture) has the following hide statement: p_web.GSV('PhotoDone') ='YES'
What I am finding is that the photo is taken and displays, the webcam display is gone and then the screen flickers and the webcam is back on display as if the webcam is set to ALWAYS display no matter what the programmer (like me) is trying to do.
Anyone with insights on this?
THanks,
Ron
48
Web Server - Ask For Help / Re: Api endpoint stream - how?
« Last post by Bruce 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
49
Web Server - Ask For Help / Api endpoint stream - how?
« Last post by Niels Larsen on May 18, 2025, 10:34:25 PM »Hi
I am developing an endpoint where I have to stream a pdf file (actually I have it as BASE64).
But I need some help to get going with the stream itself.
This is what I have from the associated Swagger:
Can one of you wise heads help me out?
Regards Niels
I am developing an endpoint where I have to stream a pdf file (actually I have it as BASE64).
But I need some help to get going with the stream itself.
This is what I have from the associated Swagger:
Code: [Select]
stream:
type: object
properties:
canRead:
type: boolean
canWrite:
type: boolean
canSeek:
type: boolean
canTimeout:
type: boolean
length:
format: int64
type: integer
position:
format: int64
type: integer
readTimeout:
format: int32
type: integer
writeTimeout:
format: int32
type: integer
Can one of you wise heads help me out?
Regards Niels
50
Web Server - Ask For Help / Re: Call a related table update form
« Last post by Poul Jensen on May 17, 2025, 07:25:08 AM »Hi Ron,
Thanks - that got me going.
Had an issue still getting an Record Not Found error when loading form B, until I added this code in the InitForm Routine:
/Poul
Thanks - that got me going.
Had an issue still getting an Record Not Found error when loading form B, until I added this code in the InitForm Routine:
Code: [Select]
p_web.SetValue('MCus:CUSTOMERNO',p_web.GSV('MCus:CUSTOMERNO'))
/Poul