people upload pictures to a database, how would i call 2?

edited August 2014 in How To...

So I want to make a program where people can upload a picture of a character to a databass, and then the program will pick one and display that image. How would i go about doing this, or is it not possible.

I can get it to display a random image in the same folder as the program, but how would i call a random one from a database

Tagged:

Answers

  • Do you really need to use a database? Just putting the images in a folder seems enough for your usage. Databases aren't well suited to store blobs of binary data, anyway.

  • Yea because I want to not be the only one who can upload these pictures, it's for a joke program so I guess it's really not that important but I like to learn about this language.

  • I still don't understand the need for a database. If several people upload images, they just coexist in the same folder, that's not a problem.

Sign In or Register to comment.