Publishing files in streams

+1 vote
hi Dears,

I used streams in blockchain, but i want to know if it is possible to publish file in stream and read it , if ok how how can it be done technically using the commands for publishing and reading. thank you so much
cordially
asked Nov 2, 2018 by johndev

1 Answer

0 votes
 
Best answer
Yes, you can certainly do this. Simply convert the file to hexadecimal format (using whichever language is appropriate in your case) and then publish that hexadecimal data as a stream item.

If your file is very large, you may want to look at using the binary cache feature in MultiChain (alphas), which allows you to pipe data directly into MultiChain directly via the file system. See section 5 of the 'Getting Started' guide for an example: https://www.multichain.com/getting-started/
answered Nov 5, 2018 by MultiChain
selected Nov 28, 2018 by johndev
Thank you very much, can you give just an example of commande for publishing hexadecimal data in stream , this what i need
Cordially
publish stream1 key1 0123456789abcdef
thank you veery much
...