I have
Two image areas (Image1, Image2)
Two Buttons (Button1, Button2)
One Text field (text)
I'm trying a proof of concept for future development. (I NEED to store images in a DB)
At any rate the way it is supposed to go is:
1. I load a picture into Image1 (using the properties inspector)
2. Pushing button1 it will base64encrypt the imagedata of Image1 and store it in field "text"
3. Pushing button2 it will base64decrypt field "text" and place it into Image2
What I have for script:
Button1
Code: Select all
on mouseUp
put base64encode(the imagedata of image "Image1") into field "text"
end mouseUp
Code: Select all
on mouseUp
local decodedBinData
put base64decode (field "text") into decodedBinData
put decodedBinData into img "Image2"
end mouseUp
When I push button1 it does put what appears to be a text string into field "text"
When I push button2 it doesnt put the image back into Image2
I've searched and read, re-read and copied all I can. Now I make an impassioned plea for some help.
Thanks in advance.