E
E
evgeniy20242022-02-06 18:44:34
PostgreSQL
evgeniy2024, 2022-02-06 18:44:34

How to store image in database?

Hello everyone, I can't figure out how to properly store an image in a database.
During the development process, I kept them in the static folder, now I need to put the site in the public domain. For storage, I chose yandex cloud storage, okay, I can upload any photo there, but I can’t figure out how and where can I store information about this in the database now?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Slava Rozhnev, 2022-02-06
@evgeniy2024

The name of the file inside the repository - store in the database.
The path to the project configuration repository.
The files themselves are in storage.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question