But in my case, im fetching aws s3 busket image which can be png or jpeg, but image not rendering on pdf??? hereenter code here
is code to review yo`enter code here
useEffect(() => {
const fetchLogo = async () => {
const logoUrl = await getLogoUrl();
setLogoUrl(logoUrl.data.logo);
setStampUrl(logoUrl.data.salaryStamp);
};
fetchLogo();
}, []);
{stampUrl && (
<Image
src={`${stampUrl}?noCache=${Math.random().toString()}`}
style={{
width: "80px",
height: "auto",
opacity: 0.7,
marginBottom: "5px",
}}
/>
)}
any one know how to solve this isuue?? please help