I am receiving a data feed that has multiple JPG images in a single file 
separated by text boundaries, that looks something like this:


--simple boundary
Content-ID:363130
Object-ID:1
Description:
Content-Type:image/jpeg

ÿØÿà +JFIF [MORE UNENCODED BINARY DATA]
--simple boundary
Content-ID:363130
Object-ID:2
Description:
Content-Type:image/jpeg
ÿØÿà +JFIF [MORE UNENCODED BINARY DATA]
--simple boundary--

The accompanying HTTP Response header looks like:

HTTP/1.1 200 OK
Date: Thu, 26 Jul 2007 15:11:18 GMT
Server: Microsoft-IIS/6.0
X-Powered-By: ASP.NET (04)
X-AspNet-Version: 1.1.4322
MIME-Version: 1.0
RETS-Version: RETS/1.5
Transfer-Encoding: chunked
Cache-Control: private
Content-Type: multipart/parallel; boundary="simple boundary"; charset=utf-8

As you can see, there is no Content-Length data whatsoever. So, you Java 
ByteArray jockeys out there, what's the most efficient way to parse out the 
binary data and save it to JPG files? It needs to be efficient, as there could 
be tens of thousands of those per day.

Regards,

Paul Cormier


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
ColdFusion is delivering applications solutions at at top companies 
around the world in government.  Find out how and where now
http://www.adobe.com/cfusion/showcase/index.cfm?event=finder&productID=1522&loc=en_us

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:284647
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

Reply via email to