#1
  1. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Dec 2002
    Posts
    3
    Rep Power
    0

    Displaying binary files (pictures) on the net


    I read the Python on the web article.
    NOw lets say I used the
    Code:
    <form name="upload" method="POST" action="upload.py" enctype="multipart/form-data">
    the file will be sent as a binary file.
    I wwould just like to know how to display this binary file(a picture) contained in a variable one the internet without writing it on the disk...

    P.S You can also view this question as: How to display a MySQL BLOB picture on the web using Python.
    Thanks.
    Last edited by Blaktyger; August 12th, 2004 at 10:07 PM. Reason: title correction
  2. #2
  3. Hello World :)
    Devshed Frequenter (2500 - 2999 posts)

    Join Date
    Mar 2003
    Location
    Hull, UK
    Posts
    2,537
    Rep Power
    69
    I dont have a means to test this right at this second but you should be able to assign it to a variable and print it out... but, you may or may not need to put it within an <img> tag, i cant remember .

    I will do my best to test it a little later. Hope you enjoyed the article!

    Mark.
    programming language development: www.netytan.com Hula


IMN logo majestic logo threadwatch logo seochat tools logo