<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Extracting image binary info without loading the entire file</title>
	<atom:link href="http://www.emstris.com/2009/05/extracting-binary-info/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.emstris.com/2009/05/extracting-binary-info/</link>
	<description>Let AS3 Rock Your World</description>
	<lastBuildDate>Wed, 06 Jul 2011 16:16:36 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
	<item>
		<title>By: Hadi Tavakoli</title>
		<link>http://www.emstris.com/2009/05/extracting-binary-info/comment-page-1/#comment-370</link>
		<dc:creator>Hadi Tavakoli</dc:creator>
		<pubDate>Wed, 06 Jul 2011 16:16:36 +0000</pubDate>
		<guid isPermaLink="false">http://www.emstris.com/?p=139#comment-370</guid>
		<description>Mike, I&#039;ve been recently built a newer class which does a better job than this class... maybe I post a blog about that on the weekend...

Hadi</description>
		<content:encoded><![CDATA[<p>Mike, I&#8217;ve been recently built a newer class which does a better job than this class&#8230; maybe I post a blog about that on the weekend&#8230;</p>
<p>Hadi</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: mike</title>
		<link>http://www.emstris.com/2009/05/extracting-binary-info/comment-page-1/#comment-369</link>
		<dc:creator>mike</dc:creator>
		<pubDate>Wed, 06 Jul 2011 15:18:54 +0000</pubDate>
		<guid isPermaLink="false">http://www.emstris.com/?p=139#comment-369</guid>
		<description>Please help, how to correctly use this in iteration

this code don&#039;t work:
	for (var i:Number = 0; i &lt; my_total; i++) {
		var thumb_url = my_images[i].@MIN;
		var myExtractor:ImageInfoExtractor = new ImageInfoExtractor();
		myExtractor.addEventListener(ImageInfoExtractor.PARSE_COMPLETE, infoHandler);
		myExtractor.addEventListener(ImageInfoExtractor.PARSE_FAILED, errorHandler);
		myExtractor.file = thumb_url;
		function infoHandler(e:Event):void {
			var line1:String = &quot;W: &quot; + myExtractor.width;
			var line2:String = &quot; x H: &quot; + myExtractor.height;
			trace( line1 + line2 );
		}
		function errorHandler(e:Event):void {
			trace( &quot;Size could not be obtained, file was not according to JFIF specification&quot; );
		}
	}

Results:
W: 0 x H: 0
W: 0 x H: 0
W: 0 x H: 0
W: 126 x H: 90

only last img is correct  

any suggestions?</description>
		<content:encoded><![CDATA[<p>Please help, how to correctly use this in iteration</p>
<p>this code don&#8217;t work:<br />
	for (var i:Number = 0; i &lt; my_total; i++) {<br />
		var thumb_url = my_images[i].@MIN;<br />
		var myExtractor:ImageInfoExtractor = new ImageInfoExtractor();<br />
		myExtractor.addEventListener(ImageInfoExtractor.PARSE_COMPLETE, infoHandler);<br />
		myExtractor.addEventListener(ImageInfoExtractor.PARSE_FAILED, errorHandler);<br />
		myExtractor.file = thumb_url;<br />
		function infoHandler(e:Event):void {<br />
			var line1:String = &quot;W: &quot; + myExtractor.width;<br />
			var line2:String = &quot; x H: &quot; + myExtractor.height;<br />
			trace( line1 + line2 );<br />
		}<br />
		function errorHandler(e:Event):void {<br />
			trace( &quot;Size could not be obtained, file was not according to JFIF specification&quot; );<br />
		}<br />
	}</p>
<p>Results:<br />
W: 0 x H: 0<br />
W: 0 x H: 0<br />
W: 0 x H: 0<br />
W: 126 x H: 90</p>
<p>only last img is correct  </p>
<p>any suggestions?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Hadi Tavakoli</title>
		<link>http://www.emstris.com/2009/05/extracting-binary-info/comment-page-1/#comment-365</link>
		<dc:creator>Hadi Tavakoli</dc:creator>
		<pubDate>Sun, 29 May 2011 14:31:51 +0000</pubDate>
		<guid isPermaLink="false">http://www.emstris.com/?p=139#comment-365</guid>
		<description>jpges must be well formated, try to save your jpg files using the &quot;save for web&quot; option in photoshop!</description>
		<content:encoded><![CDATA[<p>jpges must be well formated, try to save your jpg files using the &#8220;save for web&#8221; option in photoshop!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Joost</title>
		<link>http://www.emstris.com/2009/05/extracting-binary-info/comment-page-1/#comment-279</link>
		<dc:creator>Joost</dc:creator>
		<pubDate>Sun, 17 Apr 2011 12:45:37 +0000</pubDate>
		<guid isPermaLink="false">http://www.emstris.com/?p=139#comment-279</guid>
		<description>I&#039;m running into problems. For some reason, it doesn&#039;t seem to work with all JPG&#039;s. When I pull a random JPG off the internet, it seems to work (at least 4/4 tries worked) but I have a few jpg&#039;s that fail as well :(

Error: Error #2030: End of file was encountered.
	at flash.utils::ByteArray/readBytes()
	at com.myflashlab.classes.tools.imageEncoders::ImageInfoExtractor/::read()
	at com.myflashlab.classes.tools.imageEncoders::ImageInfoExtractor/::checkJPG()
	at com.myflashlab.classes.tools.imageEncoders::ImageInfoExtractor/::checkType()
	at com.myflashlab.classes.tools.imageEncoders::ImageInfoExtractor/::onImageProgress()</description>
		<content:encoded><![CDATA[<p>I&#8217;m running into problems. For some reason, it doesn&#8217;t seem to work with all JPG&#8217;s. When I pull a random JPG off the internet, it seems to work (at least 4/4 tries worked) but I have a few jpg&#8217;s that fail as well <img src='http://www.emstris.com/wp-includes/images/smilies/icon_sad.gif' alt=':(' class='wp-smiley' /> </p>
<p>Error: Error #2030: End of file was encountered.<br />
	at flash.utils::ByteArray/readBytes()<br />
	at com.myflashlab.classes.tools.imageEncoders::ImageInfoExtractor/::read()<br />
	at com.myflashlab.classes.tools.imageEncoders::ImageInfoExtractor/::checkJPG()<br />
	at com.myflashlab.classes.tools.imageEncoders::ImageInfoExtractor/::checkType()<br />
	at com.myflashlab.classes.tools.imageEncoders::ImageInfoExtractor/::onImageProgress()</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Andrei</title>
		<link>http://www.emstris.com/2009/05/extracting-binary-info/comment-page-1/#comment-215</link>
		<dc:creator>Andrei</dc:creator>
		<pubDate>Wed, 24 Nov 2010 22:02:05 +0000</pubDate>
		<guid isPermaLink="false">http://www.emstris.com/?p=139#comment-215</guid>
		<description>Ok, I got it working. Ping me if you need a code sample.</description>
		<content:encoded><![CDATA[<p>Ok, I got it working. Ping me if you need a code sample.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Andrei</title>
		<link>http://www.emstris.com/2009/05/extracting-binary-info/comment-page-1/#comment-214</link>
		<dc:creator>Andrei</dc:creator>
		<pubDate>Wed, 24 Nov 2010 17:22:49 +0000</pubDate>
		<guid isPermaLink="false">http://www.emstris.com/?p=139#comment-214</guid>
		<description>Have you tried extracting &quot;PLTE&quot; chunk? Here is PNG specification http://www.libpng.org/pub/png/spec/1.2/PNG-Chunks.html</description>
		<content:encoded><![CDATA[<p>Have you tried extracting &#8220;PLTE&#8221; chunk? Here is PNG specification <a href="http://www.libpng.org/pub/png/spec/1.2/PNG-Chunks.html" rel="nofollow">http://www.libpng.org/pub/png/spec/1.2/PNG-Chunks.html</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Garnet Afshari</title>
		<link>http://www.emstris.com/2009/05/extracting-binary-info/comment-page-1/#comment-210</link>
		<dc:creator>Garnet Afshari</dc:creator>
		<pubDate>Tue, 09 Nov 2010 12:08:37 +0000</pubDate>
		<guid isPermaLink="false">http://www.emstris.com/?p=139#comment-210</guid>
		<description>I am really liking this website except I am having some issues with getting the rss feed to show up in Google Chrome. Any suggestions? Thank you much!</description>
		<content:encoded><![CDATA[<p>I am really liking this website except I am having some issues with getting the rss feed to show up in Google Chrome. Any suggestions? Thank you much!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Hadi Tavakoli</title>
		<link>http://www.emstris.com/2009/05/extracting-binary-info/comment-page-1/#comment-186</link>
		<dc:creator>Hadi Tavakoli</dc:creator>
		<pubDate>Wed, 01 Sep 2010 10:45:02 +0000</pubDate>
		<guid isPermaLink="false">http://www.emstris.com/?p=139#comment-186</guid>
		<description>seems like you have already got the answer, but anyhow, in my sample, I actually try loading the file with URLLoader and check if we have enough binary info to read the header of the file... when we do, I kill the loading process which is usually less than 5k.</description>
		<content:encoded><![CDATA[<p>seems like you have already got the answer, but anyhow, in my sample, I actually try loading the file with URLLoader and check if we have enough binary info to read the header of the file&#8230; when we do, I kill the loading process which is usually less than 5k.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Pierre Chamberlain</title>
		<link>http://www.emstris.com/2009/05/extracting-binary-info/comment-page-1/#comment-185</link>
		<dc:creator>Pierre Chamberlain</dc:creator>
		<pubDate>Tue, 31 Aug 2010 17:02:52 +0000</pubDate>
		<guid isPermaLink="false">http://www.emstris.com/?p=139#comment-185</guid>
		<description>Hey I&#039;m trying to do something similar but with auto-generated ZIP files.

How were you able to read the filesize prior to the loading? Are you making two consecutive calls? (One to determine the size, another one to get the actual file(s))

To further understand what I&#039;m trying to achieve, please see this thread on Ultrashock:
http://www.ultrashock.com/forums/data-communication/as3-urlstream-php-zip-on-demand-get-bytestotal-filename-126242.html

I&#039;m curious as to how you did it. Everywhere I&#039;m reading, it seems a standalone / browser SWF object cannot get httpResponseStatus events, but in AIR it can.

Any help would be great! Thanks</description>
		<content:encoded><![CDATA[<p>Hey I&#8217;m trying to do something similar but with auto-generated ZIP files.</p>
<p>How were you able to read the filesize prior to the loading? Are you making two consecutive calls? (One to determine the size, another one to get the actual file(s))</p>
<p>To further understand what I&#8217;m trying to achieve, please see this thread on Ultrashock:<br />
<a href="http://www.ultrashock.com/forums/data-communication/as3-urlstream-php-zip-on-demand-get-bytestotal-filename-126242.html" rel="nofollow">http://www.ultrashock.com/forums/data-communication/as3-urlstream-php-zip-on-demand-get-bytestotal-filename-126242.html</a></p>
<p>I&#8217;m curious as to how you did it. Everywhere I&#8217;m reading, it seems a standalone / browser SWF object cannot get httpResponseStatus events, but in AIR it can.</p>
<p>Any help would be great! Thanks</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Hadi Tavakoli</title>
		<link>http://www.emstris.com/2009/05/extracting-binary-info/comment-page-1/#comment-65</link>
		<dc:creator>Hadi Tavakoli</dc:creator>
		<pubDate>Tue, 09 Jun 2009 22:29:03 +0000</pubDate>
		<guid isPermaLink="false">http://www.emstris.com/?p=139#comment-65</guid>
		<description>@Aaron, well, the main part is to know what information you are looking for in the binary loaded data... I think searching the web for the exif info would help to know what is to be found for your special purposes and then you may do anything with it...

I am also trying to find a way to extract the inner thumbnail being available in jpeg files so I can load an image thumbnail without having to manually create a thumbnail!!! Working with binary data is really fun and a lot of new things are possible.

If you found some new interesting things, let us know about it also here :)</description>
		<content:encoded><![CDATA[<p>@Aaron, well, the main part is to know what information you are looking for in the binary loaded data&#8230; I think searching the web for the exif info would help to know what is to be found for your special purposes and then you may do anything with it&#8230;</p>
<p>I am also trying to find a way to extract the inner thumbnail being available in jpeg files so I can load an image thumbnail without having to manually create a thumbnail!!! Working with binary data is really fun and a lot of new things are possible.</p>
<p>If you found some new interesting things, let us know about it also here <img src='http://www.emstris.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
</channel>
</rss>

