The Image is shown up in the website when running it locally as a folder instead of the actual image - reactjs

im trying to upload an image on my website in the card using bootstrap but every since i run the code an image of a folder is showing up instead of the image.I'm using React.js

Related

Next.js Dynamically added Images + Client side referenced

in /public/ I have a folder called /public/cms_images.
cms_images gets populated whenever a user uploads an image using the admin portal we created (seperate from the next.js project, its asp.net and just throws images into my next.js project's folder)
On the /pageThatUsesImage.js the page works and references the image if I build the application and serve it (next build && next start)
But when a new image gets added, the image throws a 404
I reference the filename + filetype for the image via a client side api call.
<img
src={`/cms_images/` + dataFromPageAPI.imageFileName}
/>
Is there any work around to getting dynamically added images to show on run time?

How to use an image in react imported from localhost

So i'm working on a react project and i want to use an image which is stored in my computer
i made the following code
<img src='my_image.png'/>
however it doesn't show in the browser as shown below
see image
upload your images in your public folder then access it
eg:public/images/p1.png
<img src='images/p1.png'/>
https://codesandbox.io/embed/amazing-bouman-x3mnr?fontsize=14&hidenavigation=1&theme=dark

CURL alternative in ReactJS, Download Image from a URL in a Folder

I am trying to download the image in a folder from a URL in ReactJS https://farm2.staticflickr.com/1871/44381239451_8e000b4b26.jpg
Here is how my screen looks like. Being a PHP developer I know how to fetch, download the image in CURL (very easy). ReactJs I cannot find any library to do it, any code will be helpful.The download image button should Save the image on the Server in a folder

loading image using anglularjs and ibm bluemix

I developed an application using nodes and angularjs.
I have an html file that I should display an image.
when running the application on localhost, everything work perfectly and the application displays the image.
I used this code for displaying image:
<img ng-src="./app/images/{{idimage}}.jpeg" ></img>
when I do a push for this application to ibmbluemix, the console told me that there are a 404 not found error.
Any idea please for how displaying image using angulars in ibm bluemix.
Thanks for helps
A possible reason for this issue is if you are pushing the app from outside of the app folder by using the manifest path parameter, and when you run your app locally, you also run it from outside the app folder.
After pushing your app, use cf ssh (docs) to get inside your deployed app. You can then take a look around using linux tools like ls to see what folders have been deployed.

View PDF file internally into the app from local folder by using inappbrowser

I am developing an app for ipad using
ionic framework
I am stuck at one point were
i want to open a PDF file using inappbrowser from an local folder
So that the user can read the PDF internally. The PDF is kept in local folder were my HTML file is available and i am trying to open it through below code:
window.open('pdf-sample.pdf', '_blank', 'location=yes');
But the issue is when i am trying to open it i am
not able to view/read the PDF file
It shows me the white blank screen with no content in it.
Screenshot:
What should i do to resolve this issue?
-thanks
The code looks ok. Try to open https://www.google.com/. If that works than the path to pdf is not correct.
Are you sure you try to open after deviceready ?

Resources