SQL-based picture database (cataloguing files) | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 5

SQL-based picture database (cataloguing files)

In my project I wanted to make an sql datatable with photo IDs and internal server links to them. So far I found only one way: use file name and upload directory. Tags though may be stored juust near those two things in table. Question is: is this the *right* way to do? If not, is there another one? Is there a way to assign *direct* link to a file to speed up search process? Language used: c#.

8th Sep 2018, 10:07 PM
Illusive Man
Illusive Man - avatar
1 Answer
+ 1
I couldn't understand if that was the way you found to solve it. But, why not create a directory for the photos data inside your project folder? You can save the destination on database. (i.e. Using . or ..) And then in C# you do select to get the destination as a varchar (string in C#) and load it when necessary.
9th Sep 2018, 3:19 PM
Alexander Santos
Alexander Santos - avatar