IBM Support

PI43177: WHEN PICKING A FILE ON WINDOWS 8, CORDOVA API RETURNS A BLOB INSTEAD OF THE FILE PATH.

Subscribe

You can track all active APARs for this component.

 

APAR status

  • Closed as program error.

Error description

  • When trying to pick a file from the gallery on Windows 8 using
    Cordova API, navigator.camera.getPicture, it is always
    returning a blob instead of the file path as done on Android
    and iOS.
    

Local fix

Problem summary

  • ****************************************************************
    * USERS AFFECTED:                                              *
    * Customers using the windows platform for a hybrid            *
    * application that utilizes the camera                         *
    ****************************************************************
    * PROBLEM DESCRIPTION:                                         *
    * When getPicture API is called with destinationType as        *
    * Camera.DestinationType.NATIVE_URI , it returns a blob url    *
    * instead of the file URI.                                     *
    ****************************************************************
    * RECOMMENDATION:                                              *
    * -                                                            *
    ****************************************************************
    

Problem conclusion

  • Problem was fixed by backporting a fix from the Apache community
    that has a check to see if the destination type is NATIVE_URI.
    If it is, then it manually forms the URL instead of using
    URL.createObjectURL()
    

Temporary fix

Comments

APAR Information

  • APAR number

    PI43177

  • Reported component name

    WL/MFPF CONSUME

  • Reported component ID

    5725I4301

  • Reported release

    630

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt

  • Submitted date

    2015-06-16

  • Closed date

    2015-07-31

  • Last modified date

    2015-07-31

  • APAR is sysrouted FROM one or more of the following:

  • APAR is sysrouted TO one or more of the following:

Fix information

  • Fixed component name

    WL/MFPF CONSUME

  • Fixed component ID

    5725I4301

Applicable component levels

  • R630 PSY

       UP

  • R700 PSY

       UP

[{"Business Unit":{"code":"BU053","label":"Cloud & Data Platform"},"Product":{"code":"SSZH4A","label":"IBM Worklight"},"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"630","Line of Business":{"code":"LOB45","label":"Automation"}}]

Document Information

Modified date:
17 October 2021