WinPhone version does not display camera images

Thread is closed for posting
3 posts, 0 answers
  1. Jonas
    Jonas avatar
    33 posts
    Member since:
    Sep 2009

    Posted 19 Mar 2014 Link to this post

    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,
                targetWidth: 960,
                targetHeight: 960,
                srcPrefix: "",
                saveToPhotoAlbum: false


  , 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 = "";



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

  2. Kaloyan
    Kaloyan avatar
    880 posts

    Posted 24 Mar 2014 Link to this post

    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.


    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.

  3. Jonas
    Jonas avatar
    33 posts
    Member since:
    Sep 2009

    Posted 24 Mar 2014 in reply to Kaloyan Link to this post

    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.
Back to Top