<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body>
<p>Andrea,</p>
<p>looking with an hexadecimal editor, one sees the strings
"Fotografia di Photo Editor", "MSPhotoEd.3", so it seems to be
Microsoft Photo Editor format. According to
<a class="moz-txt-link-freetext" href="https://stackoverflow.com/questions/43902205/microsoft-photo-editor-conversion-file-signatures">https://stackoverflow.com/questions/43902205/microsoft-photo-editor-conversion-file-signatures</a>
, it might be a OLE based format containing JPEG files. So you
might try tools that extract the content from OLE, and/or look for
content between the FF D8 marker for the start of JPEG content and
FF D9 for end of JPEG file</p>
<p>Even<br>
</p>
<div class="moz-cite-prefix">Le 15/11/2023 à 12:49, andy via
gdal-dev a écrit :<br>
</div>
<blockquote type="cite"
cite="mid:CAHEdGZM26irbvQPnpyJvERgpeJ-s9UZYEbwUVEgKjaXNh5XZQQ@mail.gmail.com">
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<div dir="ltr">Hi,
<div>I have a Binary field in a GDB data source.</div>
<div><br>
</div>
<div>I have no other metadata about it. I know only that the
field name is "image", then it should contain images.</div>
<div>But I do not know the original file format.</div>
<div><br>
</div>
<div>I have extract one row (and then one field) as string it,
using </div>
<div><br>
</div>
<div>ogr2ogr -f CSV /vsistdout/ -fieldTypeToString Binary
data.gdb SITI_ARCHEO -where "OBJECTID=277" >out.csv</div>
<div><br>
</div>
<div>And I have a long string as the one below.</div>
<div>I have tried to use "xxd -r -p" to convert to binary and
then use "file" to interpret its file format, but I don't get
anything useful.</div>
<div><br>
</div>
<div>How could I do some reverse extraction of these images in
their original format?</div>
<div><br>
</div>
<div>Thank you</div>
<div><br>
</div>
<div>151C3B00020000001B000C0014002F00FFFFFFFF466F746F6772616669612064692050686F746F20456469746F72004D5350686F746F45642E330001050000020000000C0000004D5350686F746F45642E33000000000000000000000E0900D0CF11E0A1B11AE1000000000000000000000000000000003E000300FEFF09000600000000000000000000000A0000000100000000000000001000000200000001000000FEFFFFFF0000000000000000040000000500000006000000070000004502000046020000470200004802000049020000FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF
...<br clear="all">
<div><br>
</div>
<span class="gmail_signature_prefix">-- </span><br>
<div dir="ltr" class="gmail_signature"
data-smartmail="gmail_signature">
<div dir="ltr">
<div>
<div dir="ltr">
<div>
<div dir="ltr">
<div>
<div dir="ltr">
<div>
<div dir="ltr">
<div>
<div dir="ltr">
<div dir="ltr"><span
style="font-size:small">___________________</span><br>
</div>
<div dir="ltr"><span
style="font-size:small"><br>
</span></div>
<div dir="ltr">Andrea Borruso<br>
website: <a
href="https://medium.com/tantotanto" target="_blank"
moz-do-not-send="true"
class="moz-txt-link-freetext">https://medium.com/tantotanto</a><br>
38° 7' 48" N, 13° 21' 9" E,
EPSG:4326<br>
<span style="font-size:small">___________________</span><br>
<br>
"cercare e saper riconoscere chi e
cosa,<br>
in mezzo all’inferno, non è
inferno, <br>
e farlo durare, e dargli spazio"<br>
<br>
Italo Calvino<br>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<br>
<fieldset class="moz-mime-attachment-header"></fieldset>
<pre class="moz-quote-pre" wrap="">_______________________________________________
gdal-dev mailing list
<a class="moz-txt-link-abbreviated" href="mailto:gdal-dev@lists.osgeo.org">gdal-dev@lists.osgeo.org</a>
<a class="moz-txt-link-freetext" href="https://lists.osgeo.org/mailman/listinfo/gdal-dev">https://lists.osgeo.org/mailman/listinfo/gdal-dev</a>
</pre>
</blockquote>
<pre class="moz-signature" cols="72">--
<a class="moz-txt-link-freetext" href="http://www.spatialys.com">http://www.spatialys.com</a>
My software is free, but my time generally not.</pre>
</body>
</html>