<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"><channel><category>pcsoft.us.windev</category><copyright>Copyright 2026, PC SOFT</copyright><lastBuildDate>25 Aug 2015 12:35:00 Z</lastBuildDate><pubDate>25 Aug 2015 07:58:00 Z</pubDate><description>if your json image data in this format&#13;
"img":[255,216,255,224,0,16,74,70, ... ]&#13;
&#13;
to convert ?&#13;
1. take out the number with in the braket "[]" .&#13;
2. extract each number into array&#13;
StringToArray(My_string , My_Array, ",")&#13;
3. convert each number in array into ascii character&#13;
FOR my_cnt =1 TO Dimension((My_Array))&#13;
My_Array[my_cnt] = Charact(My_Array[my_cnt])&#13;
END&#13;
4. convert it back into string&#13;
My_buf = ArrayToString(My_Array,"")&#13;
&#13;
if your application is unicode ON , make sure to convert it to ansi or the image won't display .&#13;
M_buf = UnicodeToAnsi(ArrayToString(M_Array,""))&#13;
&#13;
when unicode is ON ArrayToString() create more , using length(my_buf) you will notice the length different between ansi and unicode mode.</description><ttl>30</ttl><generator>WEBDEV</generator><language>en_US</language><link>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/53648-converting-json-data-image/read.awp</link><title>Converting Json data to image</title><managingEditor>moderateur@pcsoft.fr (El moderador)</managingEditor><webMaster>webmaster@pcsoft.fr (El webmaster)</webMaster><item><author>guest</author><category>pcsoft.us.windev</category><comments>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/53648-converting-json-data-image-53660/read.awp</comments><pubDate>25 Aug 2015 12:35:00 Z</pubDate><description>Hi Danny,&#13;
&#13;
Thanks for the suggestion . i will try later.&#13;
&#13;
I found out why the image distorted in WM20-android . i suspect Un…</description><guid isPermaLink="true">https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/53648-converting-json-data-image-53660/read.awp</guid><link>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/53648-converting-json-data-image-53660/read.awp</link><source url="https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/53648-converting-json-data-image/read.awp">Converting Json data to image</source><title>Re: Converting Json data to image</title></item><item><author>guest</author><category>pcsoft.us.windev</category><comments>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/53648-converting-json-data-image-53652/read.awp</comments><pubDate>25 Aug 2015 09:50:00 Z</pubDate><description>Hi,&#13;
&#13;
From the top of my head:&#13;
You can use deserialize to get the JSON Array into an array of bytes, this would be much faster…</description><guid isPermaLink="true">https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/53648-converting-json-data-image-53652/read.awp</guid><link>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/53648-converting-json-data-image-53652/read.awp</link><source url="https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/53648-converting-json-data-image/read.awp">Converting Json data to image</source><title>Re: Converting Json data to image</title></item><item><author>guest</author><category>pcsoft.us.windev</category><comments>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/53648-converting-json-data-image-53650/read.awp</comments><pubDate>25 Aug 2015 09:23:00 Z</pubDate><description>doesn't work fully on WM20 - android , the picture show as distorted picture .&#13;
&#13;
any idea , why?</description><guid isPermaLink="true">https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/53648-converting-json-data-image-53650/read.awp</guid><link>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/53648-converting-json-data-image-53650/read.awp</link><source url="https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/53648-converting-json-data-image/read.awp">Converting Json data to image</source><title>Re: Converting Json data to image</title></item></channel></rss>
