Welcome Guest | Login

send_file, is this practical or is it memory hog?

hi, i was just wondering how resource heavy is send_file ?

i am protecting images in a site, outside a public folder.....when a visitor views an album, i check if that user is a friend, if so,  render the gallery. the rendering of the gallery basically just loops through a img tag that makes a call send_file to send the image to the page.

http://mcubed.name/blog/articles/read/9

thoughts?

2007-10-06 09:19 AM

nj rails grunt!
Yeah - I think this will indeed a resource intensive thing since this lets a user download a file while still being able to browse your site. It'll consume considerable bandwidth also if the file size is large.

2007-10-06 10:19 AM

thanks varun. i found mongrel send file awhile back. i will look into this further.

2007-10-06 03:18 PM

nj rails grunt!

Hello Guest! In order to post you must be an active client with us, please log in or sign up today!