<span class="gmail_quote"></span>It appears that your database is adding a header of its own on the image file (or maybe this is part of it being an OLE object, not sure).<br><br>If you strip off the first 88 bytes, this is a standard windows bitmap file. The following code works on your file, but for your code you should just start dumping the data at the 89th byte.
<br><br>dump_file = file('show.dump', 'rb')<br>out_file = file('show.bmp', 'wb')<br><br>dump_file.seek(88)<br>out_file.write(dump_file.read())<br><br>dump_file.close()<br>out_file.close()<br>
<span class="sg">
<br>Steven James<br><br></span><div><span class="q"><span class="gmail_quote">On 5/11/07, <b class="gmail_sendername">Grzegorz Adam Hankiewicz</b> <<a href="mailto:ghankiewicz@rastertech.es" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">
ghankiewicz@rastertech.es</a>> wrote:</span></span><div><span class="e" id="q_1127b24d9eb531e0_4"><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Steven James wrote:<br>> Can you post one of those tempfiles somewhere?<br><br>Yes, you can grab them from <a href="http://gradha.no-ip.org/temp/" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">
http://gradha.no-ip.org/temp/</a>, a .bmp and<br>.dump version. From the sizes and the stringisation of the files looks
<br>like the .dump version is just the same with a header, but I wouldn't<br>like to try stripping these bytes in case the header can change size.<br><br>--<br>Rastertech España S.A.<br> Grzegorz Adam Hankiewicz
<br>/Jefe de Producto TeraVial/<br><br>C/ Perfumería 21. Nave I. Polígono industrial La Mina<br>28770 Colmenar Viejo. Madrid (España)<br>Tel. +34 918 467 390 (Ext.17) *·* Fax +34 918 457 889<br><a href="mailto:ghankiewicz@rastertech.es" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">
ghankiewicz@rastertech.es</a> *·* <a href="http://www.rastertech.es" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">www.rastertech.es</a><br><<a href="http://www.rastertech.es/" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">
http://www.rastertech.es/</a>><br><br>_______________________________________________
<br>Python-win32 mailing list<br><a href="mailto:Python-win32@python.org" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">Python-win32@python.org</a><br><a href="http://mail.python.org/mailman/listinfo/python-win32" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">
http://mail.python.org/mailman/listinfo/python-win32</a>
<br></blockquote></span></div></div><br>