while retrieving i m not able to return as gridfsdfile instead it is returning as gridfsfile so not able to write the file in output stream, So please tell me what to do
@@Javatechie please i dont know how to fetch the image or text from mongodb. After implementing your code getting error like :- Type mismatch: cannot convert from GridFSFile to GridFSDBFile. Please tell what to do
That will be bit complicated stuff you need to get image as bolb type then convert it into byte[] and map it to UI . I never tried this but if you want I can share one reference
when you opened your DB i can see fs.chunks and fs.file those were created automatically when you hit save end point or you created it manually? Do you have any references with spring DATA JPA with GRIDFS integration?
Nice Tutorial Brother keep going ;) , just one question : when we retrieve a file we call the method writeTo("path") how can we specify that the file will be stored in the downloads folder by default in any some one else computer ??
Thanks Basant, appreciate your efforts..
beautiful screensaver on your desktop
AbstractMongoConfiguration class is deprecated now....how we can alternatively do configurations now...?
while retrieving i m not able to return as gridfsdfile instead it is returning as gridfsfile so not able to write the file in output stream, So please tell me what to do
I will check it
@@Javatechie please i dont know how to fetch the image or text from mongodb. After implementing your code getting error like :-
Type mismatch: cannot convert from GridFSFile to GridFSDBFile. Please tell what to do
How can I retrive image direct to the browser instead to the folder?
That will be bit complicated stuff you need to get image as bolb type then convert it into byte[] and map it to UI .
I never tried this but if you want I can share one reference
Java Techie thank you!
Hi Marcos , please use below as reference
o7planning.org/en/11067/displaying-image-from-database-with-java-servlet
@JavaTechie: I am getting the Access denied exception while saving the file after retrieval from mongoDb. Do we need to make any changes?
No changes required I guess please compare mu code once
when you opened your DB i can see fs.chunks and fs.file those were created automatically when you hit save end point or you created it manually? Do you have any references with spring DATA JPA with GRIDFS integration?
It will create automatically
Nice Tutorial Brother keep going ;) , just one question : when we retrieve a file we call the method writeTo("path") how can we specify that the file will be stored in the downloads folder by default in any some one else computer ??
Based on mentioned path it will get that file
Bro , can u please provide further operations also like update etc..
pls create video for new version using AbstractMongoClientConfiguration
AbstractMongoConfiguration is deprecated
This old video , that time it was latest version
@@Javatechie thanks Techie. Please create for the new version. I appreciate your effort
@@Javatechie pls create video for new version using AbstractMongoClientConfiguration,pls!!!!
Ok I will do that
@@Javatechie
please can you do an updated one, there is very little of gridfs with mongo, and you are the best
My ears....