You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by "ASF GitHub Bot (JIRA)" <ji...@apache.org> on 2014/06/11 11:00:15 UTC

[jira] [Commented] (CB-6920) "File not found" error when using targetWidth and targetHeight on Windows8 with Camera plugin and FILE_URI

    [ https://issues.apache.org/jira/browse/CB-6920?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14027556#comment-14027556 ] 

ASF GitHub Bot commented on CB-6920:
------------------------------------

GitHub user vladimir-kotikov opened a pull request:

    https://github.com/apache/cordova-plugin-camera/pull/31

    CB-6920 "File not found" error when using targetWidth and targetHeight on Windows8 with Camera plugin and FILE_URI

    Issue [CB-6920](https://issues.apache.org/jira/browse/CB-6920)
    
    When using getPicture with targetWidth and targetHeight set and FILE_URI destination no picture data is returned, the error callback is hit with the message "File not found"
    If you remove targetwidth and targetheight, the camera plugin works.
    
    Reason -  incorrect usage of File plugin.

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/MSOpenTech/cordova-plugin-camera CB-6920

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/cordova-plugin-camera/pull/31.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #31
    
----
commit ffd46c4ef503bee65cfc9ad5e0ca8ff2d3fa3114
Author: Vladimir Kotikov <v-...@microsoft.com>
Date:   2014-06-11T08:49:58Z

    Use WinJS functionality to resize image instead of File plugin functionality

----


> "File not found" error when using targetWidth and targetHeight on Windows8 with Camera plugin and FILE_URI
> ----------------------------------------------------------------------------------------------------------
>
>                 Key: CB-6920
>                 URL: https://issues.apache.org/jira/browse/CB-6920
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: Plugin Camera
>         Environment: Windows 8, Camera plugin 0.3.0
>            Reporter: Vladimir Kotikov
>              Labels: camera, windows8
>
> This is very similar to CB-6613, but this repros when the destination_type is file_uri.
> I have repro'd this with the 0.3.0 version of the camera plugin.
> Repro:
> 1. create a new cordova app
> 2. add the camera plugin, version 0.3.0 (tagged in Git)
> 3. add the window8 platform
> 4. use getPicture with targetWidth and targetHeight set and FILE_URI destination
> Result:
> No picture data is returned, the error callback is hit with the message "File not found"
> If you remove targetwidth and targetheight, the camera plugin works.
> Expected:
> camera plugin should work with targetWidth and targetHeight set for FILE_URI destination



--
This message was sent by Atlassian JIRA
(v6.2#6252)