Factom-storage is a simple proof of concept to store and retrieve complete files in the Factom blockchain. That said having a blockchain storage at a fixed rate (not dependending on fluctuation of the market) is not that a crazy idea and can have some actual utility.
Please checkout doc folder for technical details on how your documents are safely uploaded.
sudo npm install -g factom-storage
factom-storage upload [options] <file> <EC address for payment> Upload a file in Factom storage Options: -m, --meta <meta> Optional textual meta information about the file to be stored -s, --socket <socket> IPAddress:port of factomd API (default localhost:8088) -h, --help output usage information
# If you provide a public EC address for payment factom-storage will attempt to retrieve the private key from a local walletd running on port 8089 factom-storage upload -s '184.108.40.206:8088' -m "My pic!" ./my_picture.jpg EC2vXWYkAPduo3oo2tPuzA44Tm7W6Cj7SeBr3fBnzswbG5rrkSTD # If you provide directly a private EC address the tool doesn't need access to walletd factom-storage upload -s '220.127.116.11:8088' -m "My pic!" ./my_picture.jpg Es32PjobTxPTd73dohEFRegMFRLv3X5WZ4FXEwNN8kE2pMDfeMyk
Usage: factom-storage download <chain ID of the file> Download a file stored with Factom storage Options: -s, --socket <socket> IPAddress:port of factomd API (default localhost:8088) -h, --help output usage information
factom-storage download -s '18.104.22.168:8088' e1e1a5cbfb153d92bfd0db4dcd7bf2cfcdb52e4d3bb05beada8c9e70536a455e