2
$\begingroup$

As we know.The values of the types is "Real" defaultly in Mathematica.In the Image documentation's detail we can see

Image[data] is equivalent to Image[data,"Real"].

I have a thinking to use a picture to store some data.You know we can upload a picture very conveniently in $Stack\;Exchange$,but the data not.Like this post.Wen can set a link of dropbox for a large data-set.It very discommodiousness to a Chinese or other national user.So I have a try like follow:

SeedRandom[331]
data1 = RandomReal[{200, 300}, {5, 2}]
dataPic = Image[data1];
ImageData[dataPic]

{{251.216, 212.714}, {230.544, 236.108}, {258.992, 267.498}, {245.38, 299.614}, {291.842, 220.589}}

{{251.216, 212.714}, {230.544, 236.108}, {258.992, 267.498}, {245.38, 299.614}, {291.842, 220.589}}

We can get a data same to original data(data1).But when I try to Export the pictrue(Just we can export it then we can upload it to $Stack\;Exchange$)

Export["test2.jpg", dataPic];
Import["test2.jpg", "RawData"]

{{255, 255}, {255, 255}, {255, 255}, {255, 255}, {255, 255}, {255,
255}, {255, 255}, {255, 255}, {255, 255}, {255, 255}}

We get a cliped data.So my wish that use pic to store data can be realize?

$\endgroup$

marked as duplicate by Simon Woods, MarcoB, m_goldberg, J. M. is away Mar 31 '16 at 0:07

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.