Skip to Content

Hi,

Here we discuss about DMS initial steps concepts.

Intro:

A document management system (DMS) is a system (based on computer programs in the case of the management of digital documents) used to track and store documents. It is usually also capable of keeping track of the different versions modified by different users (history tracking).


From SAPUI5:


1. How to get my image/Doc from Camera or SD Card?


Code for getting image from Camera:


function capturePhoto(idImage) {

      // Take picture using device camera and retrieve image as base64-encoded string

      var id = idImage;

      navigator.camera.getPicture(function (imageData) {

          // Uncomment to view the base64 encoded image data

          var smallImage = document.getElementById(id);

          smallImage.style.display = ‘block’;

          smallImage.src = imageData;

    

             jQuery.sap.require(“sap.m.MessageToast”);

  var msg = ‘Image added Successfully!!!’;

      sap.m.MessageToast.show(msg);

         // localStorage.setItem(‘img’,smallImage.src);

        var path = movePicturetoSDCard(imageData);

         

        }, onFail, { quality: 50 });

    }

Code for getting image from SD Card:


function getPhoto(source,idImage) {

      // Retrieve image file location from specified source

      navigator.camera.getPicture( function (imageData) {

          // Uncomment to view the base64 encoded image data

          var smallImage = document.getElementById(idImage);

          smallImage.style.display = ‘block’;

          smallImage.src = imageData;

         

         

          jQuery.sap.require(“sap.m.MessageToast”);

  var msg = ‘Image added Successfully!!!’;

      sap.m.MessageToast.show(msg);

         // localStorage.setItem(‘img’,smallImage.src);

          var srcAlert = smallImage.src;

          //movePicturetoSDCard(imageData);

        }, onFail, { quality: 50,

           destinationType: destinationType.FILE_URI,

           sourceType: source });

    }

if you have any doubt while upload your image to your mobile/tablet screen. don’t hesitate to ask your questions

From SAP Gateway Side:

refer: DMS Application Server file Upload

Cheers

Karthik A



To report this post you need to login first.

Be the first to leave a comment

You must be Logged on to comment or reply to a post.

Leave a Reply