image cant be loaded from firebase
See original GitHub issueDescribe the bug I cannot load images from my firebase account to the pdf. only blankspace is shown
Expected behavior Image should render
Snippet
const MyDocument =(
<Document>
{filteredImages.map((data, i) =>{
let url = data.imageURL
return(
<Page size="A4" style={newstyles.page}>
<View>
<Text>{data.title}</Text>
<Image
style={newstyles.image}
src={url}
allowDangerousPaths ={true}
/>
<Text style={newstyles.url}>{url}</Text>
</View>
</Page>)
})}
Issue Analytics
- State:
- Created 5 years ago
- Comments:10 (2 by maintainers)
Top Results From Across the Web
Images are not loading from the Firebase Storage
I'm using Firebase Storage's new method listAll(); to list all the images from my storage to my app but the images are not...
Read more >Can't load image from Firebase StorageReference · Issue #4288
I faced the same issue: I could not load the image into view. Only the placeholder was shown all the time. After trying...
Read more >Upload files with Cloud Storage on Android - Firebase
Create a reference to 'images/mountains.jpg' ... You cannot upload data with a reference to the root of your Cloud Storage bucket. Your reference...
Read more >Can't service images directly from Firebase Storage
The new Storage service is great but it seems that my app needs to call Firebase API for each image before it can...
Read more >Uploading Images to Firebase Storage (and retrieving them)
Choosing Photos from the Users Photo Library · Upload Images / Files to Firebase In React - Firebase V9 File Upload Tutorial ·...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@nultron I am able to render pdf image with png base64 string , Here is my sample setup
hey @diegomura sorry i am a new both to react and git,
issue is: i expect to see the image from the image url which i entered which as u mentioned is a valid url:
https://firebasestorage.googleapis.com/v0/b/proof-of-execution-redington.appspot.com/o/images%2F291b6e11-4af9-4ce9-b72c-373ae08956fd.png?alt=media&token=d04327cb-cedd-4f6d-b2f5-60cea739727c.
i am fetching this url by reading database in firebase itself.
as i have printed the url also in pdf the data is accessible.
as attached the pdf is also printing just fine except the image is not being shown.
System information: OS: Mac OS Mojave Version 10.14.3 Browser: Google Chrome Version 72.0.3626.119 (Official Build) (64-bit) React version 16.8.3 @react-pdf/renderer version 1.4.0
this is my entire code to generate the pdf:
Please tell me any more information u need e.g. in terms of code
P.S. I really appreciate the prompt response, Sir.