[ 
https://issues.apache.org/jira/browse/CB-860?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Simon MacDonald resolved CB-860.
--------------------------------

       Resolution: Fixed
    Fix Version/s: 1.8.0

The fix for "CB-837: CaptureCB - mediaFile.fullPath does not resolve to file" 
added file:// to the full path of the returned media object. When you do 
getFormatData for audio or video it is okay but for image you need to strip the 
file:// from the path first. This fix does the stripping and also recycles the 
bitmap that is used in order to get the image's width and height. 
                
> MediaFile.getFormatData broken for Image from Capture
> -----------------------------------------------------
>
>                 Key: CB-860
>                 URL: https://issues.apache.org/jira/browse/CB-860
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: Android
>    Affects Versions: 1.8.0
>         Environment: Seen on Android 2.2.3 and 3.1. Tested using 
> incubator-cordova-android.git tagged "master" by macdonst 48 hrs ago.
>            Reporter: Libby Baldwin
>            Assignee: Simon MacDonald
>             Fix For: 1.8.0
>
>
> After capturing image like:
> navigator.device.capture.captureImage(captureImageSuccess, captureError, 
> {limit: 1});    
> attempt to get format data from image like:
> mediaFiles[i].getFormatData(formatSuccess, formatError);
> Error callback is always called, error.code is undefined.
> Same code works using Cordova 1.6.1. The getFormatData call works on Audio 
> and Video.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to