Git Product home page Git Product logo

Comments (8)

l3ender avatar l3ender commented on June 18, 2024 1

Would be nice to have this added to the readme/examples. Thanks!

from photoviewer.

NorthMcCormick avatar NorthMcCormick commented on June 18, 2024

Base64 images do work, testing on iOS 9 and iPhone6s+ right now, not sure about android

from photoviewer.

Oliv avatar Oliv commented on June 18, 2024

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.

atakanyenel avatar atakanyenel commented on June 18, 2024

This is still a issue on android.

from photoviewer.

julianCast avatar julianCast commented on June 18, 2024

Tried a jpg base64 working perfect. Like data:image/jpeg;base64

from photoviewer.

pengVc avatar pengVc commented on June 18, 2024

Test ok, both Android and IOS

from photoviewer.

NareshKukreti12 avatar NareshKukreti12 commented on June 18, 2024

Has anyone found the solution?. Can't load base64 string to PhotoViewer.

from photoviewer.

aacassandra avatar aacassandra commented on June 18, 2024

iphone x, base64 not work

from photoviewer.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.