Login
Register
All Activity
Questions
Unanswered
Tags
Users
Ask a Question
Welcome to the Developer Q&A for the
MultiChain
blockchain platform.
Please feel free to ask questions about the platform to receive answers from the MultiChain developers or other members of the community.
Related questions
is it possible to publish files in multichain without encoding to hexadecimal in the new release of multichain
Why do permissions allow a node to "read" streams when every node has access to this data on the blockchain?
unable to create a streams with valid hexadecimal string
Why store data in hex code
Data Retrieval Speed in Streams Versus Asset Transactions
4,157
questions
4,370
answers
5,718
comments
Most popular tags
multichain
streams
assets
stream
transactions
json-rpc
blockchain
wallet
permissions
error
address
raw-transactions
asset
mining
node
api
issue
multichain-explorer
nodes
connect
multichaind
multisig
transaction
smart-filters
metadata
private-key
atomic-exchange
multichain-cli
multichain-web-demo
data
connection
performance
blocks
demo
web
json
database
storage
native-currency
bitcoin
private-blockchain
network
fee
smart-contracts
wallets
signrawtransaction
off-chain
exchange
multiple-nodes
getnewaddress
why encoding data in hexadecimal before piblishing in streams
+1
vote
hi, why we must encode data in hexadeciam beforing publishing it in streams ??
the mutichain explorer in php can publish file without encoding, however in commande line we musy encode it , why encoding it ? itahnk you for your help
asked
Jan 10, 2019
by
ashir
Please
log in
or
register
to add a comment.
Please
log in
or
register
to answer this question.
1 Answer
0
votes
You can't pass binary data over a JSON-RPC connection, since JSON has no binary format. So we use hexadecimal strings in order to do that. Another possible option would have been base64, but we don't support that yet. The MultiChain Explorer (or do you mean Web Demo?) is also accessing API data using hexadecimal in both directions.
answered
Jan 11, 2019
by
MultiChain
yes i mean web demo, i see that the web demo an publish pdf, image .. in streams without encoding
It uses hexadecimal to talk to the API. See the use of bin2hex(...) in page-publish.php and pack("H*", ...) in download-file.php
Please
log in
or
register
to add a comment.
...