# Downloading a video file and playing that(flv format.)

**URL:** <https://www.ruby-forum.com/t/downloading-a-video-file-and-playing-that-flv-format/124385>\
**Category:** Rails\
**Created:** [December 28, 2007, 7:00am UTC](https://www.ruby-forum.com/t/downloading-a-video-file-and-playing-that-flv-format/124385 "2007-12-28T07:00:47Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![arpit\_jain](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/d6d6ee/32.png) [@arpit\_jain](https://www.ruby-forum.com/u/arpit_jain)\
**Post date:** [December 28, 2007, 7:00am UTC](https://www.ruby-forum.com/t/downloading-a-video-file-and-playing-that-flv-format/124385/1 "2007-12-28T07:00:47Z")

</div>

An issue??  
Am providing a user to upload and download the video files.  
I am using attachment\_fu plugin and and usong its current\_data function  
to  
get the file, and send\_data to download it.  
Once the downloading is complete, i was not able to play that file…  
Then i saw, that the size of the file which i was playing and the same  
file  
which i am downloading is much more.  
Any pointers, where i am making mistake?? or what i need to do here so  
that  
a user can play the doanloaded file…

Thanks  
Arpit

---

<div class="post-metadata">

**Author:** ![arpit\_jain](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/d6d6ee/32.png) [@arpit\_jain](https://www.ruby-forum.com/u/arpit_jain)\
**Post date:** [December 28, 2007, 7:59am UTC](https://www.ruby-forum.com/t/downloading-a-video-file-and-playing-that-flv-format/124385/2 "2007-12-28T07:59:39Z")

</div>

Use send\_file method for download thing and while uploading try to save  
it with .flv extension using  
:filename =\> attribute

---

<div class="post-metadata">

**Author:** ![arpit\_jain](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/d6d6ee/32.png) [@arpit\_jain](https://www.ruby-forum.com/u/arpit_jain)\
**Post date:** [December 28, 2007, 8:57am UTC](https://www.ruby-forum.com/t/downloading-a-video-file-and-playing-that-flv-format/124385/3 "2007-12-28T08:57:39Z")

</div>

Thanks a lot…

On Dec 28, 2007 12:29 PM, Ratnavel S. \<
