<div dir="ltr">Dear Zoltan,<div><br></div><div>I forgot about the link. Anyway, the last problem wasn't about merging a base64 object and a string (the suggestion in Stefan mail worked). I was able to create the html table and display it, but the images where broken.</div>

<div><br></div><div>But looking around, I found the solution on the wikipedia: <a href="http://en.wikipedia.org/wiki/Data_URI_scheme#Python_3">http://en.wikipedia.org/wiki/Data_URI_scheme#Python_3</a></div><div><br></div>

<div>thanks everyone again.</div><div><br></div><div>Francesco</div><div><br></div><div><br></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">2013/9/12 Zoltán Vörös <span dir="ltr"><<a href="mailto:zvoros@gmail.com" target="_blank">zvoros@gmail.com</a>></span><br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
  
    
  
  <div text="#000000" bgcolor="#FFFFFF">
    But I have told you that there is an issue in python 3.3. I sent you
    a link in one of my earlier e-mails. In that link you should also
    find the fix.<br>
    <br>
    Cheers,<br>
    Zoltán<div><div class="h5"><br>
    <br>
    <div>On 12/09/13 17:53, Francesco Montesano
      wrote:<br>
    </div>
    <blockquote type="cite">
      <div dir="ltr">ehm. 
        <div>It does work with python 2. With python 3.3 I get in the
          notebook the symbols of brocken images and the string of the
          png printed in the console
          <div><br>
          </div>
          <div>Fra</div>
        </div>
      </div>
      <div class="gmail_extra">
        <br>
        <br>
        <div class="gmail_quote">2013/9/12 Francesco Montesano <span dir="ltr"><<a href="mailto:franz.bergesund@gmail.com" target="_blank">franz.bergesund@gmail.com</a>></span><br>
          <blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
            <div dir="ltr">Dear Stefan,
              <div><br>
              </div>
              <div>Sorry for not replying before. It does work now. </div>
              <div><br>
              </div>
              <div>Thanks,</div>
              <div><br>
              </div>
              <div>Francesco</div>
            </div>
            <div>
              <div>
                <div class="gmail_extra">
                  <br>
                  <br>
                  <div class="gmail_quote">
                    2013/9/2 Francesco Montesano <span dir="ltr"><<a href="mailto:franz.bergesund@gmail.com" target="_blank">franz.bergesund@gmail.com</a>></span><br>
                    <blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
                      <div dir="ltr">
                        <div>Thanks,</div>
                        <div><br>
                        </div>
                        <div>I'll give a try tomorrow. not it's getting
                          late</div>
                        Do you know if HTML understands b'...'?
                        <div><br>
                        </div>
                        <div>Fra<br>
                          <div><br>
                          </div>
                        </div>
                      </div>
                      <div class="gmail_extra">
                        <br>
                        <br>
                        <div class="gmail_quote">
                          <div>2013/9/2 Stéfan van der Walt <span dir="ltr"><<a href="mailto:stefan@sun.ac.za" target="_blank">stefan@sun.ac.za</a>></span><br>
                          </div>
                          <div>
                            <div>
                              <blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
                                <div>On Mon, Sep 2, 2013 at 10:31 PM,
                                  Francesco Montesano<br>
                                  <<a href="mailto:franz.bergesund@gmail.com" target="_blank">franz.bergesund@gmail.com</a>>
                                  wrote:<br>
                                  > thank you very much for the
                                  example. This should work wonderfully
                                  for python<br>
                                  > 2.x., but, as Zoltan pointed out,
                                  it won't work on python 3.x, as you
                                  can't<br>
                                  > concatenate string and bytes
                                  objects (returned by base64 methods).<br>
                                  <br>
                                </div>
                                That shouldn't be too much of a problem:<br>
                                <br>
                                In [12]: bytes('asd'.encode('utf-8')) +
                                base64.b64encode(b'asd')<br>
                                Out[12]: b'asdYXNk'<br>
                                <br>
                                In [13]: (bytes('asd'.encode('utf-8')) +<br>
base64.b64encode(b'asd')).decode('utf-8')<br>
                                Out[13]: 'asdYXNk'<br>
                                <br>
                                Have a look at "numpy.compat" for some
                                utility functions as well.<br>
                                <div>
                                  <div><br>
                                    Stéfan<br>
_______________________________________________<br>
                                    IPython-dev mailing list<br>
                                    <a href="mailto:IPython-dev@scipy.org" target="_blank">IPython-dev@scipy.org</a><br>
                                    <a href="http://mail.scipy.org/mailman/listinfo/ipython-dev" target="_blank">http://mail.scipy.org/mailman/listinfo/ipython-dev</a><br>
                                  </div>
                                </div>
                              </blockquote>
                            </div>
                          </div>
                        </div>
                        <br>
                      </div>
                    </blockquote>
                  </div>
                  <br>
                </div>
              </div>
            </div>
          </blockquote>
        </div>
        <br>
      </div>
      <br>
      <fieldset></fieldset>
      <br>
      <pre>_______________________________________________
IPython-dev mailing list
<a href="mailto:IPython-dev@scipy.org" target="_blank">IPython-dev@scipy.org</a>
<a href="http://mail.scipy.org/mailman/listinfo/ipython-dev" target="_blank">http://mail.scipy.org/mailman/listinfo/ipython-dev</a>
</pre>
    </blockquote>
    <br>
  </div></div></div>

<br>_______________________________________________<br>
IPython-dev mailing list<br>
<a href="mailto:IPython-dev@scipy.org">IPython-dev@scipy.org</a><br>
<a href="http://mail.scipy.org/mailman/listinfo/ipython-dev" target="_blank">http://mail.scipy.org/mailman/listinfo/ipython-dev</a><br>
<br></blockquote></div><br></div>