5

One of our applications currently relies on mapped drives to access large media files (20-100MB) on the local network.

We would like to change this to some sort of web service so that we can make it more secure and move it to a web server (not relying on a local network).

Because they are large media files, we need to be have random access to the files (so that we can start videos from any point).

We have many different types of media files (MPEG, WMV, MOV, AVI, etc...) and would rather not encode them to a specific format for this purpose. We would much rather favor a technology that would allow us to access the file, as if it were a local file.

What technology should we use?

Jason
  • 16,739
  • 23
  • 87
  • 137

3 Answers3

2

HTTP already supports this natively. However, your clients need to know how to support it. It is the Content-Range header to specify the range to be requested and Content-Length to know the size.

If you need it as a "service" you can use WebDAV as well which provides semantics that would allow you to access a file system. There's a WebDAV Servlet implementation as well which you can use as a starting basis.

Archimedes Trajano
  • 35,625
  • 19
  • 175
  • 265
1

probably you just need HTTP progressive download. You listed media containers that can contain almost arbitrary stream formats. In any case you can try to use VLC or another universal player that supports progressive download, most probably they can play your files.

Andriy Tylychko
  • 15,967
  • 6
  • 64
  • 112
-2

Use Java.

For securing the access - expose your authentication / authorization logic for the file store in any web service stack. for example axis , metro.

Java does have RandomAccessFile which can peek and seek to any point, but am not sure you really require this.

You existing application will have to have build some consumption mechanism for this.

Manish Singh
  • 3,463
  • 22
  • 21
  • wondering why it got down voted ? on question "We would much rather favor a technology that would allow us to access the file, as if it were a local file." - Have a look at Apache VFS – Manish Singh Jul 06 '11 at 02:27
  • 2
    You suggested Java... any language can do random access on files... the problem is the protocol delivering it over the web. – Jason Jul 06 '11 at 02:49
  • Hmmmm..... The way I look at it... I didn't suggested here Java as Language ...I suggested Java as technology...A technology rich enough to support different protocols and problems using its libraries and versatile open source solutions... -:)... – Manish Singh Jul 08 '11 at 02:50