Hi folks, Consider the snippet in views.py url = http://127.0.0.1:8806/test request = urllib2.Request ( url ) f = urllib2.urlopen ( request ) result = f.info().getheader ( 'Content-Type' ) if result == "image/jpeg" : print "image/jpeg" s = f.read()
t = loader.get_template ( 'templates/index.html' ) #load the image via render to response or ...? Let's assume the content from s is an imagery. The question: Can I load upload the content from s within a template? I'm told that's not possible with html tags and I'd have to write the content to disk on the server side then pass the url to the my django views.py logic. If I can load the content from s without the need to store the content on the server then I'd like an example html and the accompanying logic in views.py to test. Assume the image size is 640x480 -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/django-users. For more options, visit https://groups.google.com/groups/opt_out.

