Purpose of this program: to upload and store images onto the IOTA Tangle.

This article assumes you have Python installed on your machine (I used a Raspberry Pi). To install python and/or use a terminal refer to any of my previous articles.

Contact me if you are stuck. Also please let me know if you see anything that needs improvement.

1. Activate IOTA

To communicate with the IOTA tangle you need to install the PyOTA library (https://github.com/iotaledger/iota.lib.py):

cd ~/

sudo apt-get install libffi-dev (to avoid the error: “failed building wheel for cryptography”)

sudo pip install pyota[ccurl]

git clone https://github.com/iotaledger/iota.lib.py.git

To test if the installation was successful (this will take around 10 minutes):

cd iota.lib.py

python setup.py test

2. Preparing the image to be uploaded

To upload an image you need to convert is to a Base64 String first. There are several web pages where you can do this. I used Code Beautify (https://codebeautify.org/base64-decode).

Middle Post Content

The result will look as follows:

On…

Click to continue reading on its source location…

Source: https://thebitcoinnews.com/for-beginners-upload-images-onto-the-iota-tangle/