<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"><channel><category>pcsoft.us.windev</category><copyright>Copyright 2026, PC SOFT</copyright><lastBuildDate>27 Jan 2015 12:20:40 Z</lastBuildDate><pubDate>27 Jan 2015 10:04:00 Z</pubDate><description>I use some HTTP API that outputs raw image data as response on web request. The result is array of bytes (array of 1-byte unsigned int). I use .Net stream to read data. I need to display result image on Image control so I need to convert result array into Buffer. Now I use the simple algoryhtm:&#13;
&#13;
// get the image raw data&#13;
arrBytes is array of [1024] 1-byte unsigned int&#13;
BufferedStream.Read(arrBytes,0,1024)&#13;
// convert array to buffer byte per byte&#13;
bufBuffer is Buffer&#13;
FOR nByte in arrBytes&#13;
bufBuffer += Charact(nByte)&#13;
END&#13;
&#13;
But the little problem is slow process. As bigger array as longer process is going. 40Kbytes are processed about few seconds but when I get array more then 1Mbyte (HD image) the process is "hangs". Could you someone help me?</description><ttl>30</ttl><generator>WEBDEV</generator><language>en_US</language><link>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/50100-quick-conversion-array-buffer/read.awp</link><title>Quick conversion array to buffer</title><managingEditor>moderateur@pcsoft.fr (El moderador)</managingEditor><webMaster>webmaster@pcsoft.fr (El webmaster)</webMaster><item><author>Gautam</author><category>pcsoft.us.windev</category><comments>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/50100-quick-conversion-array-buffer-50105/read.awp</comments><pubDate>27 Jan 2015 12:20:40 Z</pubDate><description>Hi&#13;
&#13;
Could you perhaps save the array to a file and load the file to into the buffer using floadbuffer() to speed it up?&#13;
&#13;
Gau…</description><guid isPermaLink="true">https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/50100-quick-conversion-array-buffer-50105/read.awp</guid><link>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/50100-quick-conversion-array-buffer-50105/read.awp</link><source url="https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/50100-quick-conversion-array-buffer/read.awp">Quick conversion array to buffer</source><title>Re: Quick conversion array to buffer</title></item><item><author>guest</author><category>pcsoft.us.windev</category><comments>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/50100-quick-conversion-array-buffer-50103/read.awp</comments><pubDate>27 Jan 2015 11:26:00 Z</pubDate><description>Quote&#13;
Fabrice Harari&#13;
&#13;
You can try using "transfer" instead of your copy by byte, that should be much faster...&#13;
&#13;
Thank you f…</description><guid isPermaLink="true">https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/50100-quick-conversion-array-buffer-50103/read.awp</guid><link>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/50100-quick-conversion-array-buffer-50103/read.awp</link><source url="https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/50100-quick-conversion-array-buffer/read.awp">Quick conversion array to buffer</source><title>Re: Quick conversion array to buffer</title></item><item><author>guest</author><category>pcsoft.us.windev</category><comments>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/50100-quick-conversion-array-buffer-50101/read.awp</comments><pubDate>27 Jan 2015 10:47:00 Z</pubDate><description>Hi&#13;
&#13;
You can try using "transfer" instead of your copy by byte, that should be much faster...&#13;
&#13;
Best regards</description><guid isPermaLink="true">https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/50100-quick-conversion-array-buffer-50101/read.awp</guid><link>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/50100-quick-conversion-array-buffer-50101/read.awp</link><source url="https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/50100-quick-conversion-array-buffer/read.awp">Quick conversion array to buffer</source><title>Re: Quick conversion array to buffer</title></item></channel></rss>
