On Thursday, 14 June 2012 09:51:00 UTC+1, Satvir Kaur wrote: > > > This is a strange thing to want to do. What are you doing with `img` in > the > > template? > I am using image_data variable as a image source in the template(html > file). > > <img src="{{img}}" width="100" height="100" alt="image is not > available" align="right"/> > What should i ??? Image is not displaying. >
Normally in an HTML file you put the image path in the src attribute, not the binary data (you can use a data URI with base64 encoding, but you almost certainly don't want to do that). -- DR. -- You received this message because you are subscribed to the Google Groups "Django users" group. To view this discussion on the web visit https://groups.google.com/d/msg/django-users/-/bPOH5SGCtHEJ. To post to this group, send email to django-users@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.