Comments (8)
Would be nice to have this added to the readme/examples. Thanks!
from photoviewer.
Base64 images do work, testing on iOS 9 and iPhone6s+ right now, not sure about android
from photoviewer.
Hello there,
I just tried to use base64 in android, base64 image doesn't load and the loading screen stays forever.
Do you think it is possible to fix it ?
Regards, Olivier
Here is the JS used :
PhotoViewer.show('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGQAAABkCAYAAABw4pVUAAABZUlEQVR4Xu3TQREAAAiEQK9/aWvsAxMw4O06ysAommCuINgTFKQgmAEMp4UUBDOA4bSQgmAGMJwWUhDMAIbTQgqCGcBwWkhBMAMYTgspCGYAw2khBcEMYDgtpCCYAQynhRQEM4DhtJCCYAYwnBZSEMwAhtNCCoIZwHBaSEEwAxhOCykIZgDDaSEFwQxgOC2kIJgBDKeFFAQzgOG0kIJgBjCcFlIQzACG00IKghnAcFpIQTADGE4LKQhmAMNpIQXBDGA4LaQgmAEMp4UUBDOA4bSQgmAGMJwWUhDMAIbTQgqCGcBwWkhBMAMYTgspCGYAw2khBcEMYDgtpCCYAQynhRQEM4DhtJCCYAYwnBZSEMwAhtNCCoIZwHBaSEEwAxhOCykIZgDDaSEFwQxgOC2kIJgBDKeFFAQzgOG0kIJgBjCcFlIQzACG00IKghnAcFpIQTADGE4LKQhmAMNpIQXBDGA4LQQL8oTPAGUY76lBAAAAAElFTkSuQmCC')
Here is the logcat :
12104:I/ActivityManager(27374): START u0 {cmp=mobile.julien.groupcamp.test/com.sarriaroman.PhotoViewer.PhotoActivity (has extras)} from uid 10139 on display 0 12110:V/ActivityManager(27374): Starting new activity ActivityRecord{248112c3 u0 mobile.julien.groupcamp.test/com.sarriaroman.PhotoViewer.PhotoActivity t481} in existing task TaskRecord{1ca13b49 #481 A=mobile.julien.groupcamp.test U=0 sz=1} from source ActivityRecord{3f410d50 u0 mobile.julien.groupcamp.test/.MainActivity t481} 12112:V/WindowManager(27374): addAppToken: AppWindowToken{177c1679 token=Token{247e9740 ActivityRecord{248112c3 u0 mobile.julien.groupcamp.test/com.sarriaroman.PhotoViewer.PhotoActivity t481}}} to stack=1 task=481 at 1 12121:D/ActivityManager(27374): resumeTopActivityLocked: Restarting ActivityRecord{248112c3 u0 mobile.julien.groupcamp.test/com.sarriaroman.PhotoViewer.PhotoActivity t481} 12131:V/ActivityThread(32060): ActivityRecord{18ee55b4 token=android.os.BinderProxy@38cf85dd {mobile.julien.groupcamp.test/com.sarriaroman.PhotoViewer.PhotoActivity}}: app=android.app.Application@ce68e7, appName=mobile.julien.groupcamp.test, pkg=mobile.julien.groupcamp.test, comp={mobile.julien.groupcamp.test/com.sarriaroman.PhotoViewer.PhotoActivity}, dir=/data/app/mobile.julien.groupcamp.test-2/base.apk 12136:V/WindowManager(27374): Adding window Window{5d8181f u0 mobile.julien.groupcamp.test/com.sarriaroman.PhotoViewer.PhotoActivity} at 5 of 12 (after Window{18a72b03 u0 mobile.julien.groupcamp.test/mobile.julien.groupcamp.test.MainActivity}) 12138:I/WindowManager(27374): update systemui visibility:[8000], mLastSystemUiFlags:[8600], win:[Window{5d8181f u0 mobile.julien.groupcamp.test/com.sarriaroman.PhotoViewer.PhotoActivity}] 12165:I/WindowManager(27374): update systemui visibility:[0], mLastSystemUiFlags:[8000], win:[Window{5d8181f u0 mobile.julien.groupcamp.test/com.sarriaroman.PhotoViewer.PhotoActivity}] 12175:I/ActivityManager(27374): Displayed mobile.julien.groupcamp.test/com.sarriaroman.PhotoViewer.PhotoActivity: +135ms 12188:I/Timeline(27374): Timeline: Activity_windows_visible id: ActivityRecord{248112c3 u0 mobile.julien.groupcamp.test/com.sarriaroman.PhotoViewer.PhotoActivity t481} time:2228627234
from photoviewer.
This is still a issue on android.
from photoviewer.
Tried a jpg base64 working perfect. Like data:image/jpeg;base64
from photoviewer.
Test ok, both Android and IOS
from photoviewer.
Has anyone found the solution?. Can't load base64 string to PhotoViewer.
from photoviewer.
iphone x, base64 not work
from photoviewer.
Related Issues (20)
- Method show doesn't exist
- Close Image on swipe
- crash app in ios with this plugin HOT 1
- Ionic app Crash when view image in ios HOT 1
- Share button does not open share options when using Android 10 HOT 2
- Android app crashes on share button press HOT 3
- Get cookies from webview and request image with it
- remove title, keep options
- swipe between images HOT 2
- Android Build Failed with Duplicate Class
- Change Button Close Position HOT 1
- Ionic5 - not compatible? HOT 5
- PhotoViewer is Error HOT 5
- Why this file content is 1.2.4 ??? HOT 1
- header is not used in plugin anywhere HOT 1
- This plugin should not depend on jCenter for Android builds
- compile removed in Gradle 7 HOT 1
- Is the Photoviewer only for Cordova projects? HOT 7
- Not working with Capacitor 4 and Android 12
- Build fails - Cordova@11 android@11 HOT 8
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from photoviewer.