Saving my photo forever
Normally when you post an image on steem, the image is not stored in the blockchain, but instead uploaded to an image service run by steemit and only the reference (url) is stored.
In the year 4284 when steemit inc and their servers are long gone and archaeologists are carefully dusting off the blockchain block by block they will be delighted to discover that at least one photo survived through the ages... (Hi guys! If I managed to put myself into some sort of stasis before dying please go and wake me up, instructions will be in a later block)
edit The image will not show up on steemit.com due to how they try to proxy all images, it's still there though! Here's the same image uploaded to their image service:
How are you doing this? I'm interested in integrating a service like this to my little project - where people could store all kinds of content and be sure that it will be there unchanged for future.
I'm inlining a base64 encoded jpeg in the post body, not sure what the limit is but that image was 26kb
Could be done for any file, see https://en.wikipedia.org/wiki/Data_URI_scheme
Thank you for the reply. Just now noticed it. Will look into this!
Cool
wow!nice!
hmmm, interesting.....
Nice idea, maybe Steem blockchain would limit the size of the post in the later hard-fork if many people try this technique.
I think it's already limited, not sure what the limit is though
Oh, I tried upload my photo using your technique, but it failed as you said.
I'm trying to find a way to workaround Steemit's image proxy.
Yeah had to use the API to get it to post, check http://piston-cli.readthedocs.io
Have you checked to see if it's actually there?
I cannot find the image (looking on the post content object on the blockchain). I was going to do it myself like I suppose you'd have done it by putting a base64 representation of the image in the json metadata to see how much I'm allowed to embed, but when I checked to see how you did it, I couldn't find any inlining anywhere.
I had to edit it because the steemit.com ui didn't like it but it's still there
https://steemdb.com/immortal/@almost-digital/saving-my-photo-forever/edits
Inlined base64 jpg in the post body
I see. Have you thought of using the custom_json field instead of the body field?
No, but that would probably work as well.