Code Monkey home page Code Monkey logo

Comments (15)

andrejm7 avatar andrejm7 commented on July 30, 2024 1

https://stackblitz.com/edit/angular-ivy-amefyb?file=src%2Fapp%2Fapp.component.ts

there is the problem.
Why doesn't 4 image appear?

I have a blob service return. And adding to galleryImages I can't see the image.

just complementing .. base64 images would also be an option does not work too ...
In <img [src] = imageBase64> yes it works.

from ngx-gallery.

andrejm7 avatar andrejm7 commented on July 30, 2024

????

from ngx-gallery.

kolkov avatar kolkov commented on July 30, 2024

Hi! I think you need to use request interceptors, but I am not sure is it possible in this case.

from ngx-gallery.

kolkov avatar kolkov commented on July 30, 2024

https://stackoverflow.com/questions/41013632/how-to-set-authorization-header-on-background-image-url

from ngx-gallery.

kolkov avatar kolkov commented on July 30, 2024

https://stackoverflow.com/questions/47811784/passing-authorization-header-for-images-src-to-remote-server-in-ionic-page

from ngx-gallery.

kolkov avatar kolkov commented on July 30, 2024

https://medium.com/javascript-in-plain-english/loading-images-with-authorization-8aab33663ba6

from ngx-gallery.

kolkov avatar kolkov commented on July 30, 2024

https://stackoverflow.com/questions/38810956/set-background-image-to-a-blob-uri

from ngx-gallery.

andrejm7 avatar andrejm7 commented on July 30, 2024

thanks for the feedback. @kolkov
i tried to do it according to this link .. look at the problem i have now .. i have 200 status but images .. but in ngx-gallery it doesn't show the image

lukasz-galka/ngx-gallery#322 (comment)

from ngx-gallery.

kolkov avatar kolkov commented on July 30, 2024

thanks for the feedback. @kolkov
i tried to do it according to this link .. look at the problem i have now .. i have 200 status but images .. but in ngx-gallery it doesn't show the image

lukasz-galka/ngx-gallery#322 (comment)

You need yo use blob url as image url.

from ngx-gallery.

andrejm7 avatar andrejm7 commented on July 30, 2024

yes .. i tried to do that .. but the image does not appear .. look at the problem ..

image

from ngx-gallery.

kolkov avatar kolkov commented on July 30, 2024

@andrejm7 Provide an repo please.

from ngx-gallery.

kolkov avatar kolkov commented on July 30, 2024

https://github.com/kolkov/ngx-gallery/tree/test_blob try this solution or the same other.

from ngx-gallery.

andrejm7 avatar andrejm7 commented on July 30, 2024

i had this problem now ..

Error: Cannot read property 'startsWith' of undefined
Unable to display error. Open your browser's console to view.

I'm using like this

const objUrl = 'data: image/jpeg; base64,' + baseImage.image;

or

const objUrl = 'data: image/png; base64,' + baseImage.image;

from ngx-gallery.

kolkov avatar kolkov commented on July 30, 2024

My example works, try to do by analogy...

from ngx-gallery.

kolkov avatar kolkov commented on July 30, 2024

Try to post your support question with example to https://stackoverflow.com/ please.
Thanks!

from ngx-gallery.

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.