# Hide image url for captcha

**URL:** <https://www.ruby-forum.com/t/hide-image-url-for-captcha/132884>\
**Category:** Rails\
**Created:** [March 25, 2008, 3:46pm UTC](https://www.ruby-forum.com/t/hide-image-url-for-captcha/132884 "2008-03-25T15:46:01Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![dino\_d](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/b5ac83/32.png) [@dino\_d](https://www.ruby-forum.com/u/dino_d)\
**Post date:** [March 25, 2008, 3:46pm UTC](https://www.ruby-forum.com/t/hide-image-url-for-captcha/132884/1 "2008-03-25T15:46:01Z")

</div>

Hi-

I’m fooling around with a picture based captcha. I want to hide the  
url of an image by doing something like:

\<img src = “[http://myserver](http://myserver),com?image=JHJHK”

So I want to send a request that uses a hash. That’s the easy part.  
How do I generate an image stream on the server using ROR? In other  
words, I don’t want to return the filename, I want to return an image  
stream that is loaded from an image file in a secret database.

Thanks for any help,  
Dino

---

<div class="post-metadata">

**Author:** ![dino\_d](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/b5ac83/32.png) [@dino\_d](https://www.ruby-forum.com/u/dino_d)\
**Post date:** [March 25, 2008, 3:54pm UTC](https://www.ruby-forum.com/t/hide-image-url-for-captcha/132884/2 "2008-03-25T15:54:22Z")

</div>

On 25 Mar 2008, at 14:45, dino d. wrote:

> words, I don’t want to return the filename, I want to return an image  
> stream that is loaded from an image file in a secret database.

use send\_data

Fred

---

<div class="post-metadata">

**Author:** ![dino\_d](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/b5ac83/32.png) [@dino\_d](https://www.ruby-forum.com/u/dino_d)\
**Post date:** [March 25, 2008, 5:41pm UTC](https://www.ruby-forum.com/t/hide-image-url-for-captcha/132884/3 "2008-03-25T17:41:47Z")

</div>

> use send\_data
> 
> Fred

thanks!

dino
