aspose file tools*
The moose likes Other JSE/JEE APIs and the fly likes how to handle uploaded media file in java(i.e. audio and video) Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Soft Skills this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Java » Other JSE/JEE APIs
Bookmark "how to handle uploaded media file in java(i.e. audio and video)" Watch "how to handle uploaded media file in java(i.e. audio and video)" New topic
Author

how to handle uploaded media file in java(i.e. audio and video)

aashishkumar singh
Greenhorn

Joined: Feb 07, 2012
Posts: 6
I am looking forward to develop a website. in which the user can upload audio and video files. where as others can view it but i am not sure how to handle such a huge chunk of data. the options m having is 1 - i save it at my end 2 -cloud P.S. - - if we have some other wondrful options also then please let me know. i will b using jsf and hibernate.
i tried searchin the site but everything is not related to the thing which i m trying to get
Tim Moores
Rancher

Joined: Sep 21, 2011
Posts: 2408
Define "huge". Hard disk space is dirt cheap these days.
aashishkumar singh
Greenhorn

Joined: Feb 07, 2012
Posts: 6
""huge"" as in it depends on the users buddy see if the users start uploading a movie then even a simple movie will consume around 700mb and ya i knw that the hard disk space is cheap now a days but for that i need to have a dedicated or a vps server which i cnt afford in start.
Tim Moores
Rancher

Joined: Sep 21, 2011
Posts: 2408
Doesn't your hosting company have options to expand your storage space with them? Or were you thinking about running the server on your home machine? But if you can't afford buying a hard drive yourself, then you probably can't afford renting hard drive space online, either.
aashishkumar singh
Greenhorn

Joined: Feb 07, 2012
Posts: 6
i wil b hosting my application on a hosting server on shared basis n they dnt allow storing media files on shared hosting and i cnt afford a vps or a dedicated server at startin..

and tim please give me solution rather than judging my financial capabilities
Tim Moores
Rancher

Joined: Sep 21, 2011
Posts: 2408
In that case, check out Amazon S3 - http://aws.amazon.com/s3/. Their cost model is network usage dependent, I believe, so how much you'll end up paying is not clear at the start. An you need to think about uploading the files from your server to the storage server, and the associated networking issues.

There are also lots of file hosting sites, but there's some serious retrenching going on amongst them due to the legal troubles of MegaUpload.com. That's not a route I would start out on.
aashishkumar singh
Greenhorn

Joined: Feb 07, 2012
Posts: 6
ok even i was considering amazon .
so i have to do it in this way first upload the content at my server then to amazon server isnt that an overhead ,is there any other way to handle this i mean directly the content gets uploaded to amazon's server.

and thanks in advance tim
Tim Moores
Rancher

Joined: Sep 21, 2011
Posts: 2408
I don't think that's possible, but I'm no expert on S3.
aashishkumar singh
Greenhorn

Joined: Feb 07, 2012
Posts: 6
ohk so is jboss server more than enough for for streaming videos and music.

and i would really love if some one who has used amazon cloud to hel me
Tim Moores
Rancher

Joined: Sep 21, 2011
Posts: 2408
Oh, you want to stream the videos? In that case, storing them across the network from your server probably isn't a good idea due to network latency. Plus, you're going to eat into your network bandwidth allowance both during upload and download. If you're using a shared hosting environment, then the allowance probably isn't all that much; you may want to check with your hosting provider, and do some back-of-the-envelope calculation whether it's feasible.
aashishkumar singh
Greenhorn

Joined: Feb 07, 2012
Posts: 6
video streaming is in the pipeline it will take time as for now i need to stream music so is it possible in shared hosting...

is it tat no one has used amazon cloud front here
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: how to handle uploaded media file in java(i.e. audio and video)