Thanks Peter.  Think this is coming from an access database export of
some kind so that would probably explain the unknown format.

Am i right in saying its better practice to provide a link to the
image file in the xml if possible rather than embedding the actual
image.  It seems
a bit of a recipe for disaster parsing binary data in an xml file and
decoding to an image.

JB

On 2 Sep, 11:15, Peter Hickman <[email protected]> wrote:
> I'm not sure that that is an image file per se. If you strip the junk
> out from the decoded file you get this:
>
> ... Packager Shell Object ... Package ... 2010-8-23 _9999_bum
> street_Stewart McNicholl_IMAGE_005.jpg ... C:\Users\Stewart
> McNicholl\Desktop\2010-8-23 _9999_bum street_Stewart McNicholl_IMAGE
> _005.jpg ... C:\Users\STEWAR~1\AppData\Local\Temp\2010-8-23 _9999_bum
> street_Stewart McNicholl_IMAGE_005 (2).jpg ...
>
> It looks like some sort of archive format perhaps.
>
> A jpeg encoded in base 64 would probably start "/9j/4AAQ....", or
> something like that.

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en.

Reply via email to