Extracting image file from zip archive into a variable??
m.schonewille at economy-x-talk.com
Thu Jun 28 14:45:44 CDT 2012
If setting the text or putting the data into an image object doesn't work, then the data is corrupt. What happens if you write the variable to a file and try to open it with an image editor?
Economy-x-Talk Consulting and Software Engineering
Use Color Converter to convert CMYK, RGB, RAL, XYZ, H.Lab and other colour spaces. http://www.color-converter.com
On 28 jun 2012, at 18:05, James Hale wrote:
> I am extracting files from a zip archive directly into variables.
> Some of the files may be jpeg image files.
> How can I display these image files from the respective variables?
> Here is what I have tried.
> I created an image object on my card and then tried to get it to display the image that was extracted to the variable.
> Putting the variable into the image object doesn't seem to work.
> Setting the imagedata of the image object to the variable didn't work.
> Setting the text of the image object to the variable didn't work.
> Am I wasting my time here in thinking the variable contains data I can use?
> Should I be extracting the image file from the archive to a file first and then import it (or URL a bin file of it).
> I wanted to avoid having to write a file and then read it in and then delete it, if possible
More information about the use-livecode