views:

252

answers:

1

Hi,

I'm thinking about to write a restful service which is able to upload and stream large video files (GB) (in future it might not only be videos and could also be large documents.

I researched so far and what really makes sense to me could be to use off:

WCF Data Services and Implement IDataServiceStreamProvider and on the back-end I want to Strore the large files into SQL SERVER 2008 using the new SQL Type FILESTREAM.Looks also like I had to use some Win 32 API to access the filesystem SafeFileHandle handle = SqlNativeClient.OpenSqlFilestream

Since WCF Data Services likes to play with Entity Framework or Linq-To-SQL who can be the streaming implementation and is there a support for the SQL Server Filestream Type?

this is the plan but I don't know how to assemble it together... I thougt about chunking the large files and to be able to resume and cancel.

For the upload: I am not sure to use the silverlight upload control or some other nifty ajax tool.

Can anyone point me in the right direction here... or would u think this is this a way to go? Thoughts, Links? whould be great...

A: 

I did something where I was sending huge data files. I used these two examples to help write my code

http://msdn.microsoft.com/en-us/library/ms751463.aspx

http://www.codeproject.com/KB/WCF/WCFDownloadUploadService.aspx

This is a very important number to know 2147483647

KenL