• If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Announcement

Collapse
No announcement yet.

Valence mobile.Camera.getPicture

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Valence mobile.Camera.getPicture

    Hi all,

    i try to implement a mobile App and use the Valence.mobile.Camera.getPicture() to access the camera.
    The callback function give the base64 coded data back to the App.

    How can i save this data to IFS upload folder?

    I try to send the data to RPG backend programm per ajax request but there is no vvIn_ to get base64 coded data.


    Many thanks in advance

    Boris

  • #2
    Boris,

    We have 'vvIn_base64tofile' which looks to be undocumented so I'm adding that to our tracking list.

    Code:
          p vvIn_base64tofile...                             
          p                 b                   export       
          d                 pi              n                
          d  inFieldName                  20a   const varying
          d  inDestPath                  256a   const varying
          d  inDestFile                   64a   const varying
    1. First parameter is a character expression representing the name of the variable sent in from the browser containing the base64 data.
    2. Second parameter is the location the file should be placed on the IFS.
    3. Last parameter is the name of the file. Example 'myImage.png'
    Thanks

    Comment


    • #3
      There is some sample back-end RPG code in VALENCE50/QRPGLESRC, member EXEMPMAINT, that you can use as an example to follow. We will add a front-end example to go with it in a future build.

      Comment


      • #4
        @Jonny, @Robert,

        many thanks for the info. I implemented this backend call in my project and it works fine.

        ~Boris

        Comment


        • #5
          Boris,

          Great, glad it was what you were looking for.

          Comment

          Working...
          X