This is a migrated thread and some comments may be shown as answers.

WinPhone version does not display camera images

2 Answers 30 Views
AppBuilder Windows client
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Jonas
Top achievements
Rank 1
Jonas asked on 19 Mar 2014, 05:48 PM
I use this code to upload photos it works in Android and iOS, but in WinPhone it does not show the image on <img src=...> . However - when I save to the server later, the image gets uploaded as it should. 

    getImageFromPhotoLibrary(onSuccess: Function, onFail?: Function) {
        var imageOptions = {

            quality: 50,
            destinationType: navigator.camera.DestinationType.FILE_URI,
            targetWidth: 960,
            targetHeight: 960,
            srcPrefix: "",
            sourceType: navigator.camera.PictureSourceType.PHOTOLIBRARY,
            saveToPhotoAlbum: false

        };

        navigator.camera.getPicture(onSuccess, onFail, imageOptions);

    }

...

                cordovaNavigatorService.getImageFromPhotoLibrary((imageData) => {

                    var imageText = 'Bild ' + (1 + $scope.images.length);
                    if ($scope.newNote != '') imageText += " - " + $scope.newNote;

                    //cordovaNavigatorService.sendImage(imageData, 1);

                    $scope.images.push({ text: imageText, src: imageData });
                    $scope.newNote = "";
                    $scope.$apply();

                });

...


            <img ng-src="{{img.src}}" alt="bild" class="img-thumbnail" style="width: 205px;">




2 Answers, 1 is accepted

Sort by
0
Kaloyan
Telerik team
answered on 24 Mar 2014, 12:27 PM
Hi Jonas Eriksson,

Unfortunately, I was not able to reproduce such behavior with the camera plugin inside the Camera sample app.

Is it possible for you to wrap the issue into a running project and send it over for further investigation? Another option could be to point a project (its name) inside your account in which the matter is reproducible and we will give it a look.

As both ways require the sharing of sensitive information from your side, I suggest you to open a support ticket on the matter. It will ensure that everything stays confidential.

Thank you for the understanding. I am looking forward to hearing from you.

Regards,
Kaloyan
Telerik
 

Build cross-platform mobile apps using Visual Studio and .NET. Register for the online webinar on 03/27/2014, 11:00AM US ET. Seats are limited.

 
0
Jonas
Top achievements
Rank 1
answered on 24 Mar 2014, 12:59 PM
Thanks a lot for taking a look, I will try to re-align my project with the Camera sample again, and if I get stuck I'll create an issue with a pointer to my proj.
Tags
AppBuilder Windows client
Asked by
Jonas
Top achievements
Rank 1
Answers by
Kaloyan
Telerik team
Jonas
Top achievements
Rank 1
Share this question
or