SpringData MongoDB GridFsTemplate to save/retrieve/delete binary file | Java Techie

Sdílet
Vložit
  • čas přidán 29. 04. 2018
  • This video explain you how to perform save ,retrieve & delete binary file using SpringData MongoDB GridFsTemplate
    GitHub:
    github.com/Java-Techie-jt/spr...
    Blog :
    javagyanmantra.wixsite.com/we...
    Facebook Page :
    / 919464521471923
    Like & subscribe
  • Věda a technologie

Komentáře • 25

  • @gopisambasivarao5282
    @gopisambasivarao5282 Před rokem +1

    Thanks Basant, appreciate your efforts..

  • @perticomanonalto
    @perticomanonalto Před 3 lety +1

    beautiful screensaver on your desktop

  • @akhilpattipati4014
    @akhilpattipati4014 Před 4 lety +1

    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?

  • @shashankbanoria3432
    @shashankbanoria3432 Před 2 lety

    AbstractMongoConfiguration class is deprecated now....how we can alternatively do configurations now...?

  • @rohitdhingra7186
    @rohitdhingra7186 Před 3 lety +1

    @JavaTechie: I am getting the Access denied exception while saving the file after retrieval from mongoDb. Do we need to make any changes?

    • @Javatechie
      @Javatechie  Před 3 lety

      No changes required I guess please compare mu code once

  • @karusalaanil8032
    @karusalaanil8032 Před 2 lety

    Bro , can u please provide further operations also like update etc..

  • @billelguechi5831
    @billelguechi5831 Před 5 lety +1

    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 ??

    • @Javatechie
      @Javatechie  Před 5 lety

      Based on mentioned path it will get that file

  • @houseofgames6099
    @houseofgames6099 Před 4 lety

    pls create video for new version using AbstractMongoClientConfiguration

  • @marcosradix1
    @marcosradix1 Před 5 lety +2

    How can I retrive image direct to the browser instead to the folder?

    • @Javatechie
      @Javatechie  Před 5 lety +1

      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

    • @marcosradix1
      @marcosradix1 Před 5 lety +1

      Java Techie thank you!

    • @Javatechie
      @Javatechie  Před 5 lety

      Hi Marcos , please use below as reference
      o7planning.org/en/11067/displaying-image-from-database-with-java-servlet

  • @mayurjain4340
    @mayurjain4340 Před 3 lety +1

    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
      @Javatechie  Před 3 lety

      I will check it

    • @mayurjain4340
      @mayurjain4340 Před 3 lety

      @@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

  • @MrDepava
    @MrDepava Před 4 lety +2

    My ears....

  • @RanjithKumar-qj9mn
    @RanjithKumar-qj9mn Před 4 lety +1

    AbstractMongoConfiguration is deprecated

    • @Javatechie
      @Javatechie  Před 4 lety

      This old video , that time it was latest version

    • @RanjithKumar-qj9mn
      @RanjithKumar-qj9mn Před 4 lety +1

      @@Javatechie thanks Techie. Please create for the new version. I appreciate your effort

    • @houseofgames6099
      @houseofgames6099 Před 4 lety +1

      @@Javatechie pls create video for new version using AbstractMongoClientConfiguration,pls!!!!

    • @Javatechie
      @Javatechie  Před 4 lety

      Ok I will do that

    • @everpena9177
      @everpena9177 Před 4 lety

      @@Javatechie
      please can you do an updated one, there is very little of gridfs with mongo, and you are the best