NetTalk Central

Author Topic: Saving QR Code to an ImageFile  (Read 4429 times)

de la Rosa

  • Full Member
  • ***
  • Posts: 128
    • View Profile
    • Email
Saving QR Code to an ImageFile
« on: March 05, 2022, 05:18:04 PM »
Hi,

In the below Code, the QR Code is generated in the Element defined by ElementID, how can I save the generated QR image to an image file on disk where it can be retrieved and displayed elsewhere?

    Glo:st.remove('<123>')
    Glo:st.remove('<125>')
    Glo:st.remove('<10>')
    Glo:st.remove('<13>')
     
    ElementData = 'QRDisplayForm?RefNo =' & p_web.GSV('RefNo') & '& CustID =' & p_web.GSV('CusttID')
     
    ElementID = 'Ticket_QR'
       
    p_web.script('generateQrCode('& '''' & CLIP(elementID) & '''' & ',' & '''' & Clip(ElementData) & '''' & ');')




TIA
Vic


Jane

  • Sr. Member
  • ****
  • Posts: 372
  • Expert on nothing with opinions on everything.
    • View Profile
    • Email
Re: Saving QR Code to an ImageFile
« Reply #1 on: March 06, 2022, 11:52:15 AM »
?? maybe easier to use a library to generate the image on the server rather than with script on the browser ??

de la Rosa

  • Full Member
  • ***
  • Posts: 128
    • View Profile
    • Email
Re: Saving QR Code to an ImageFile
« Reply #2 on: March 10, 2022, 09:25:15 PM »
Hi Jane,

Yes, can you point me to an example I can refer to?

Thanks,
Vic

Alberto

  • Hero Member
  • *****
  • Posts: 1873
    • MSN Messenger - alberto-michelis@hotmail.com
    • View Profile
    • ARMi software solutions
    • Email
-----------
Regards
Alberto

de la Rosa

  • Full Member
  • ***
  • Posts: 128
    • View Profile
    • Email
Re: Saving QR Code to an ImageFile
« Reply #4 on: March 11, 2022, 12:04:43 PM »
Hi Alberto,

Sorry, I'm not familiar on how to compile it without an *.app file. There are 2 project files but with no app files?

Will appreciate any help.

Thanks,
Vic

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11250
    • View Profile
Re: Saving QR Code to an ImageFile
« Reply #5 on: March 14, 2022, 10:10:13 PM »
I recommend coming to a Wednesday Open webinar (www.clarionlive.com) so I can show you how to compile a project.

de la Rosa

  • Full Member
  • ***
  • Posts: 128
    • View Profile
    • Email
Re: Saving QR Code to an ImageFile
« Reply #6 on: March 15, 2022, 09:34:40 AM »
Ok Bruce, Thanks!