A
A
Alexey Mairin2017-09-30 11:43:51
C++ / C#
Alexey Mairin, 2017-09-30 11:43:51

How to store photos on the qt server (or how to do it in general)?

Hi all!
Such a question arose, how to store photos.
The scenario is as follows, the user is prompted to upload a photo (I assume to the server)
And then store the name or path to the image in the database, and then upload it from there.
and so the algorithm of implementation of loading on the server is not clear.
Or maybe there are some other options?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
denismaster, 2017-09-30
@denismaster

You need to send an array of bytes that make up the image to the server.
On the server side, you need to create a file and fill it with the necessary bytes, add a name and extension, or write these bytes into a field in some database.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question