Gemini AI API with Image Input in Node JS Javascript Tutorial - Pro Vision Model

Поделиться
HTML-код
  • Опубликовано: 3 фев 2025

Комментарии • 14

  • @welkerarantes9073
    @welkerarantes9073 Месяц назад

    Awesome tutorial 🤩

  • @jatingorana4148
    @jatingorana4148 12 дней назад

    Thanks a lot!!!

  • @prasadnakhate3189
    @prasadnakhate3189 8 месяцев назад

    What if i dont want to keep the image in the same path?
    but fs.readFileSync takes up different path

    • @unitedtoptech6288
      @unitedtoptech6288  8 месяцев назад

      you need to add the folder paths with the image name

  • @uedson5935
    @uedson5935 3 месяца назад

    Obrigado.

  • @zilong1103
    @zilong1103 4 месяца назад

    Please give me the github code

  • @99.googolplex.percent
    @99.googolplex.percent 8 месяцев назад

    Why everyone is trying to read the image from the disk directly? You can send URL which is a better option, obviously.

    • @unitedtoptech6288
      @unitedtoptech6288  8 месяцев назад

      Yeah but what if you try uploading an image ? you won't be having url for that

    • @99.googolplex.percent
      @99.googolplex.percent 8 месяцев назад

      @@unitedtoptech6288 Reading a file from memory either it's RAM or drive in server is not an option for me when it comes to production. For most applications, you'll likely need to store images either for historical reference or for other purposes. Assuming you'll use a database to store metadata about the files, like ownership information, you'll also need to upload them to a storage solution such as S3 or Cloud Storage. This allows you to upload the file to that storage and retrieve the URL instead of persisting the raw image/file data in the database and reading the file every time on the server. Keeping files on the server can lead to various issues, including performance drawbacks, especially if you're storing them in RAM, even with base64 encoding.

    • @unitedtoptech6288
      @unitedtoptech6288  8 месяцев назад +1

      Wow! thanks for the info