
Conversion String -> Byte Array

a.kaiser
I am using the ZIP XOP (http://www.igorexchange.com/project/ZIP) to access zipped images that are saved in a proprietary data format. For that purpose I am reading strings from those data files and then decode them using zipdecode(str). After that process I have a (longer) string that contains all my image data (1280x1024 Pixel = 1.3 million pixels!) that I convert to a 2D-wave by using char2num for every single pixel. This process is very slow. Is there any other faster way to convert a long string (> 1 MB) into a byte array (wave)?
Thanks,
Alexander
Usage:
Then all you need to do is redimension/rename/duplicate. This operation will be very fast
September 13, 2011 at 05:20 am - Permalink
Thanks! That works great!
September 13, 2011 at 05:55 am - Permalink