Post
Topic
Board Announcements (Altcoins)
Re: Qora | POS | Assets | Names | Polls | Automated Transactions | Social Network
by
Skerberus
on 30/12/2015, 17:12:00 UTC
hello. i can upload in blockchain small file 139 kb? And how i can download his after 1-2 years?

You can upload arbitrary data into the namestorage of your name. So open your Qora client: In order to use the namestorage you need to register a name, if you don't have a name yet you can register one here (names must be lowercase!) http://127.0.0.1:9090/registername . After that browse to http://127.0.0.1:9090/index/namestorage.html . Choose your name from the dropdown menu. After that choose a key under which you will find the file later (e.g. myfile.txt). Use the browse button and choose your file and press upload. After that is done you need to press the submit button to upload it into blockchain and approve the security call. Keep in mind that there is a 50 transaction per batch restriction at the moment, so if your file exceeds that limit uploading it will be forbidden, so 139KB might be too much if it can't be compressed well.
Keep in mind that the namestorage is public so after uploading the file everyone will be able to download that file here http://127.0.0.1:9090/yourname/yourkey so you need to encrypt it yourself if you don't want others to read the content.

Can I read up somewhere on how exactly that storage works ?

Here is a common explanation:
What is NameStorage?
The NameStorage is basically a decentralized data storage that is tied to names that can be registered or bought through name exchange. The NameStorage allows the owner of the corresponding name to store arbitrary data (e.g. pictures, files) in the NameStorage. Only the owner of a name can change the corresponding NameStorage, but everyone can access the uploaded data in an easy way. The data is stored with the help of special arbitrary transactions that have the service number 10. The NameStorage itself is key/value based which means you store the data under a key which will be in most cases the name of the file.

Feel free to ask any more questions.

Thanks but I was talking about a more technical explanation:) Looking at the blockexplorer it seems they are simply stored as base64 though rigtht ?


That is correct, keep in mind that an arbitrary transaction has a size limit, the namestorage not. So basically you "feed" the namestorage with (multiple) arbitrary transactions and the content is stored in a key/value map so that it can be accessed in a fast and easy way, completly transparent for the user. The whole social network and qora web is based on this namestorage technology.

I got result as expected ( http://127.0.0.1:9090/cabal/cabal_archon.jpg ) but wallet highly miscalculated required number of transactions and fee. Image was uploaded using 11 transactions and 243 QORA but wallet stated, before submitting uploaded image, that it will require 27 transactions and like 3,144 QORA for the job. Also after my wallet created and broadcasted those 11 transactions it started acting weird, upon attempting to switch to Accounts or Naming service (main window) or Blocks (Debug window) I was getting insane amount of errors and wallet was pretty much unusable so I had to restart it which happened but only after 2nd quit attempt via File menu.

After a restart Naming service became unusable (possibly something else as well, had no time to check) with some errors reported. After another restart wallet started resyncing the blockchain and only after resyncing was complete wallet returned to normal operation.

Way too many bugs.

Hi there Smiley,
I checked your picture and get the following in the security question:
"Because of the size of the data this call will create 11 transactions.
All Arbitrary Transactions will cost: 243.00000000 Qora."
So this looks correct to me. Can you please try again ( of course you can deny the api call, so there is no need for you to upload it again).
The gui issues are known, we will move the wallet into the qora web in the future so it will be lightweight and most likely won't have those issues.