You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by GitBox <gi...@apache.org> on 2019/12/12 21:45:43 UTC

[GitHub] [cordova-plugin-camera] breautek commented on issue #538: Best way to show it on a browser?

breautek commented on issue #538: Best way to show it on a browser?
URL: https://github.com/apache/cordova-plugin-camera/issues/538#issuecomment-565201123
 
 
   the `cordova-plugin-camera` does not create divs nor puts images in the dom itself. Are you sure you're creating an issue on the right repository?
   
   Using this plugin you can do this but it involves a few steps.
   
   1. use the `getPicture` API and receive a file uri
   2. Use the `cordova-plugin-file` plugin to read the file into a blob object.
   3. Use [createObjectURL(blob)](https://developer.mozilla.org/en-US/docs/Web/API/URL/createObjectURL) to create an object url
   4. The obtained object url can be placed anywheres where it accepts an image reference, such as an `<img>` tag or `background-image` css.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org