#Images aren't showing - Thymeleaf

1 messages · Page 1 of 1 (latest)

trail zinc
#

I have product cards and can you see in this picture the Intel image is showing correctly but when i'm adding the new product image is not showing. When i change the HTML code in the browser and i'm using the same Intel image at the second product, everything is fine. How it is possible? I changed the image extensions but problem is still exists. All of the images are in the same path. How it is possible?

slate orioleBOT
#

<@&987246452180930620> please have a look, thanks.

slate orioleBOT
#

While you are waiting for getting help, here are some tips to improve your experience:

Code is much easier to read if posted with syntax highlighting and proper formatting.

If nobody is calling back, that usually means that your question was not well asked and hence nobody feels confident enough answering. Try to use your time to elaborate, provide details, context, more code, examples and maybe some screenshots. With enough info, someone knows the answer for sure.

Don't forget to close your thread using the command </help-thread close:1027500463647621170> when your question has been answered, thanks.

trail zinc
#

Image paths from database:

foggy cobalt
#

What does the network inspector show? 404?

#

Another error?

trail zinc
#

Nope, everything works, only image isn't loading. Its strange.

#

I think it's not problem with thymeleaf, because i operate in the Chrome code editor and problem still exists

foggy cobalt
#

The network inspector also shows a request for the image

#

What's the response there

trail zinc
#

I'm getting 404 in the image

#

But these images are in the same folder

foggy cobalt
#

Are they served from the jar

trail zinc
#

Nope

foggy cobalt
#

Restart doesn't fix it?

#

What's the code which serves this

trail zinc
#

I tried with random images that i use to this site and they are showing...

#

I don't know why latest downloaded products images doesn't work

#

Hmm, i just downloaded the same photo but on another website and it's working. It's really strange, maybe these images are protected in some way?

foggy cobalt
#

Does the spring boot application serve the images?

trail zinc
#

Now, yes

foggy cobalt
#

Can you share the code that does it?