August 12th, 2004, 10:38 PM
Displaying binary files (pictures) on the net
I read the Python on the web article.
NOw lets say I used the
the file will be sent as a binary file.
<form name="upload" method="POST" action="upload.py" enctype="multipart/form-data">
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.
Last edited by Blaktyger; August 12th, 2004 at 11:07 PM.
Reason: title correction
August 13th, 2004, 06:13 AM
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!