How to upload PDFs and make them accessable for a third party?

+3 votes

I'm new to MultiChain and want to use it to store Data (pdf) and make it accessable for people outside of the Blockchain itself.

Even though I already read questions and answers about the topic of uploading pdf and storing them in Multichain, I still don't know how to do it. I've got two knots. Is there a detailled instruction on how to store mulitple pdfs?


Moreover, I want a third computer to be able to download these pdfs when the right key is given. Is there a given way on how to create a client for a computer to interact with the Blockchain without becoming a knot itself?


Thanks for any advice. Because I'm new to MultiChain, details and links would be great!
asked Aug 25, 2020 by anonymous

1 Answer

+1 vote
You should use streams to store PDF files on the blockchain, each PDF can be a separate stream item. Follow this guide to understand the basics:

Then see the API documentation for how to add binary data (like a PDF) in a stream.

If you want a non-node to retrieve data from the blockchain, it would have to request that data from an application that is connected to one of the nodes. This bridge could be a very simple PHP or Python script that accepts the requests and responds by retrieving data from the node.
answered Aug 25, 2020 by MultiChain