Z
Z
zhabaa2021-10-25 00:14:01
Python
zhabaa, 2021-10-25 00:14:01

How to upload a photo in code?

How can I upload a photo to code so that it can be opened on another device as well? On the Internet I found only local options (

Answer the question

In order to leave comments, you need to log in

1 answer(s)
R
Ronald McDonald, 2021-10-25
@zhabaa

You can store in base64, of course, and decode each time for display: https://qna.habr.com/q/621570
But it's better to just drop it into the project directory and transfer the entire directory.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question