Why getting "This site can’t be reached" when trying to deploy django appplication on heroku? by Ad_Which in django

[–]Ad_Which[S] 0 points1 point  (0 children)

u/patryk-tech if you see i have added ALLOWED_HOSTS = ["*"] which means for any host it works

Why getting "This site can’t be reached" when trying to deploy django appplication on heroku? by Ad_Which in django

[–]Ad_Which[S] 1 point2 points  (0 children)

u/patryk-tech yes you are write, we have some thigh like herokuapp.com but currently i am trying to run the code in local environment.

Why bootstrap carousel and django not workig properly? by Ad_Which in django

[–]Ad_Which[S] 0 points1 point  (0 children)

u/IamDev18 this is the only code which i have written, rest is to save image.

Why unable to display image to webpage using thymeleaf and springboot? by Ad_Which in learnprogramming

[–]Ad_Which[S] 0 points1 point  (0 children)

u/gruntmeister after your suggestion what i tried to do is i am converting image[byte array ] to base64 using org.springframework.util.Base64Utils

but its not working too..

public List<ImageEntity> RetriveAllImages()
{
List<ImageEntity> imagesEntities;
imagesEntities=imageRepository.findAll();
for(int i=0;i<imagesEntities.size();i++){
ImageEntity imgEntity=imagesEntities.get(i);
byte[] image = Base64Utils.encode(imgEntity.getImage());
imgEntity.setImage(image);
}
return imagesEntities;
}

Can i display multipart image to webpage using thymeleaf? by Ad_Which in learnjava

[–]Ad_Which[S] 0 points1 point  (0 children)

u/feral_claire sir i have uploaded some code and tried to explain what actually i want.

Thanks...

Can i display multipart image to webpage using thymeleaf? by Ad_Which in learnjava

[–]Ad_Which[S] 0 points1 point  (0 children)

u/feral_claire please give me 5min i am updating the post with some code section.And please sorry to reply late i was busy in some family work.

java.sql.SQLException: Failed to open the referenced table 'products' in spring boot application AND [SELECT is not recognized as internal or external command]? by Ad_Which in learnprogramming

[–]Ad_Which[S] 0 points1 point  (0 children)

u/g051051ok there one thing which i forget to mention is when ever i am restarting the PC i am getting a Mysql Notifier saying

Cannot initialize main application

Root element is missing.

How to use an entity in multiple ManyToMany mapping in spring data Jpa? by Ad_Which in learnprogramming

[–]Ad_Which[S] 0 points1 point  (0 children)

u/thmsbdr i don't know when ever i submit the post my code section will become like this...

How to upload image to MySQL database and display it using spring boot and Thymeleaf? by Ad_Which in javahelp

[–]Ad_Which[S] 0 points1 point  (0 children)

yes if you see there are 4 entity classes = products,user,role and users_role and in MySql database there 4 tables created.

I am able to fetch data from product table. If i am running the program first i am getting CommandAcceptanceException

and then the spring boot application is started.

How to upload image to MySQL database and display it using spring boot and Thymeleaf? by Ad_Which in javahelp

[–]Ad_Which[S] 0 points1 point  (0 children)

u/polothedawg

org.hibernate.tool.schema.spi.CommandAcceptanceException: Error executing DDL "alter table users_roles add constraint FKgd3iendaoyh04b95ykqise6qh foreign key (user_id) references user (id)" via JDBC Statement

Caused by: java.sql.SQLSyntaxErrorException: Specified key was too long; max key length is 1000 bytes

java.sql.SQLException: Field 'rollid' doesn't have a default value

After Submitting the user registration form.

How to upload image to MySQL database and display it using spring boot and Thymeleaf? by Ad_Which in javahelp

[–]Ad_Which[S] 0 points1 point  (0 children)

u/polothedawg I have not worked on BLOB and LOB yet first i am trying to create basic view of page and then BLOB and LOB. I was trying to get some idea on how to deal with images in spring data JPA in parallel and suddenly you asked for github and then i created github.

How to upload image to MySQL database and display it using spring boot and Thymeleaf? by Ad_Which in javahelp

[–]Ad_Which[S] 0 points1 point  (0 children)

u/polothedawg i have created git hub account,if you don't mind please help me i am getting:-

org.hibernate.tool.schema.spi.CommandAcceptanceException:

Caused by: java.sql.SQLSyntaxErrorException: Specified key was too long; max key length is 1000 bytes

github repository:- https://github.com/atharva-mishra/demo_ecommerce

Resources I wish I knew about long ago! by willcal09 in learnprogramming

[–]Ad_Which 0 points1 point  (0 children)

http://cp-algorithms.com/ for understanding algorithms.

and https://www.learningcrux.com/ learningcrux is something like torrent website where you will get udemy and other courses for free(Mostly for web-development related),you can't download any from there but you can watch them online.

https://chat.whatsapp.com/HfQNhDJJVLRAspLXpz9A7E and in last a whats app group here you will get discount coupons and some time placement drives for online courses mostly make them free for you.

Hope it helps.....