Hello,

My app is converting uploaded files to different formats (with many
different system tools), and serving them back.

for example, pdfs are served from controller this way:
...
response.headers['Content-Type']= 'application/pdf'
return response.stream(open(request.vars.url,'rb'),chunk_size=4096)
#request.vars.url stores link to output file

...

I  don't know how to serve html file with few images in body. I have
an output files:
xx.html
xx_html_yy.jpg
xx_html_zz.png
...

using
...
response.headers['Content-Type'] = 'text/html'
return response.stream(open(request.vars.url,'rb'),chunk_size=4096)
...

is not good enough, as I don't see images on rendered page

How should I serve such html file with images ?

thanx




Reply via email to