Jump to content
Welcome to our new Citrix community!
  • 0

trying to take picture from an iPad workspace app by using Mobile SDK for Windows Apps getting CMP_ERROR_CLIENT_DRIVE_UNAVAILABLE error


HIROYUKI YUKAWA

Question

Hello everyone.
We are trying to make a windows C# app that can call ipad camera and take a picture then copy to workspace desktop directory.
We used the demo from Mobile SDK for Windows Apps and put exe file into workspace desktop directory.
When we run it,it returns CMP_ERROR_CLIENT_DRIVE_UNAVAILABLE error.
It seems it cannot access iPad storage so we checked allow read/write access from Device Storage option in Store Settings within Citrix Workspace App, but it didn't work.
Does anyone know how to fix this error?
I believe it throws the exception when it runs into BeginTakePicture.

 

code:
private void DoTakePicture()
        {
            this.ShowPicture = false;
            this.Picture = null;
            this.LastStatus = "Taking picture...";
            this.vmBase.Cmp.Camera.BeginTakePicture(PictureImageFormat.Jpeg, TimeSpan.FromSeconds(30), ar =>
            {
                try
                {
                    var picture = this.vmBase.Cmp.Camera.EndTakePicture(ar);
                    this.Picture = picture;

                    this.LastStatus = string.Format("Picture: {0}, {1} bytes", picture.FileName, picture.Size);

                    // Now show the picture.
                    DoShowPicture();
                }
                catch (CmpException ex)
                {
                    this.LastStatus = "CmpException: " + ex.Message;
                }
                catch (NotSupportedException ex)
                {
                    this.LastStatus = "NotSupportedException: " + ex.Message;
                }
                catch (TimeoutException ex)
                {
                    this.LastStatus = "TimeoutException: " + ex.Message;
                }
            });
        }

Link to comment

0 answers to this question

Recommended Posts

There have been no answers to this question yet

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...