You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@flex.apache.org by leokan23 <le...@best-web.gr> on 2020/07/01 14:39:40 UTC

Re: Spark Image not loading a Firebase URL

Thank you for your reply. If you try the second set of links (real bucket)
you can see both images in any browser.

If you try to load them with a custom loader like bellow it works:

<http://apache-flex-users.2333346.n4.nabble.com/file/t659/carbon_%283%29.png> 

Using firebaseImg.source=url; where firebaseImg is Image spark or
BitmapImage, doesn't work. 

URL1 (works in all cases):
https://firebasestorage.googleapis.com/v0/b/firebase-dogmate.appspot.com/o/ze.png?alt=media

URL2 (works in browsers and loader but doesnt work for image.source=url)
https://firebasestorage.googleapis.com/v0/b/firebase-dogmate.appspot.com/o/public_files%2Fze.png?alt=media


Final step to solve this (after checking the BitmapImage.as code) was to
submit a UrlRequest instead of string.

firebaseImage.source = new UrlRequest(url); seem to work in all cases. 



--
Sent from: http://apache-flex-users.2333346.n4.nabble.com/

Re: Spark Image not loading a Firebase URL

Posted by leokan23 <le...@best-web.gr>.
No idea why. Works in all my browsers.

Any how, using a urlrequest instead of string for source works, so I guess I
can live with this workaround. 



--
Sent from: http://apache-flex-users.2333346.n4.nabble.com/

Re: Spark Image not loading a Firebase URL

Posted by Alex Harui <ah...@adobe.com.INVALID>.
Hi.  For me, URL2 does not work on my Macbook Pro in Safari or Chrome.

HTH,
-Alex

On 7/1/20, 7:39 AM, "leokan23" <le...@best-web.gr> wrote:

    Thank you for your reply. If you try the second set of links (real bucket)
    you can see both images in any browser.
    
    If you try to load them with a custom loader like bellow it works:
    
    <https://nam04.safelinks.protection.outlook.com/?url=http%3A%2F%2Fapache-flex-users.2333346.n4.nabble.com%2Ffile%2Ft659%2Fcarbon_%25283%2529.png&amp;data=02%7C01%7Caharui%40adobe.com%7Cf9d534661121472dd93208d81dcc99cf%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C637292111945234891&amp;sdata=1vrI11BtaluDUn4xJ1ChBznv0XQuupoUI8aR3vwGzR8%3D&amp;reserved=0> 
    
    Using firebaseImg.source=url; where firebaseImg is Image spark or
    BitmapImage, doesn't work. 
    
    URL1 (works in all cases):
    https://nam04.safelinks.protection.outlook.com/?url=https%3A%2F%2Ffirebasestorage.googleapis.com%2Fv0%2Fb%2Ffirebase-dogmate.appspot.com%2Fo%2Fze.png%3Falt%3Dmedia&amp;data=02%7C01%7Caharui%40adobe.com%7Cf9d534661121472dd93208d81dcc99cf%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C637292111945234891&amp;sdata=rnRwye2AHXEQN9aSpvHYWffy01lq2dyjr1SuThwFK4k%3D&amp;reserved=0
    
    URL2 (works in browsers and loader but doesnt work for image.source=url)
    https://nam04.safelinks.protection.outlook.com/?url=https%3A%2F%2Ffirebasestorage.googleapis.com%2Fv0%2Fb%2Ffirebase-dogmate.appspot.com%2Fo%2Fpublic_files%252Fze.png%3Falt%3Dmedia&amp;data=02%7C01%7Caharui%40adobe.com%7Cf9d534661121472dd93208d81dcc99cf%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C637292111945234891&amp;sdata=oZQf0Ou%2FwAWo5e%2FEWAQRawjkSc2RslB5vTCdahXyIt0%3D&amp;reserved=0
    
    
    Final step to solve this (after checking the BitmapImage.as code) was to
    submit a UrlRequest instead of string.
    
    firebaseImage.source = new UrlRequest(url); seem to work in all cases. 
    
    
    
    --
    Sent from: https://nam04.safelinks.protection.outlook.com/?url=http%3A%2F%2Fapache-flex-users.2333346.n4.nabble.com%2F&amp;data=02%7C01%7Caharui%40adobe.com%7Cf9d534661121472dd93208d81dcc99cf%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C637292111945234891&amp;sdata=FPNChGVzwx7I%2BbtUKr30ObM3zsq9ZiedatPkgmRR0Kg%3D&amp;reserved=0