Silverlight Brass Tacks

Bill Reiss' Silverlight Ramblings
My upcoming Silverlight book for beginners Hello! Silverlight 2 with Dave Campbell, available online now!



Pages

Recent posts

Navigation

Archive

Blogroll

Tampa Divorce Lawyer

North of Tampa in Lutz, Florida. A Tampa Divorce Lawyer focusing on family, divorce, and real estate law.

Disclaimer

The opinions expressed herein are my own personal opinions and do not represent my employer's view in anyway.

Dealing with nested folders (filesets) in Silverlight Streaming API

A couple of weeks ago I started working on being able to upload Deep Zoom image sets with my client side classes that call the Silverlight Streaming API. I'm not quite ready to release a new version of the library and the sample app, but I wanted to share some of what I had learned so far which could help others out.

First I tried to just specify the full path including all of the nested folders for the file name when uploading, and I was getting errors. It turns out that you need to explicitly create each sub-fileset using the MKCOL command before you can upload files to it. Once I did this, it was pretty straightforward to upload the files into these filesets.

This brought about another problem. When getting a list of files in a fileset using the GET command, you'll actually get ALL files that are in the fileset and any filesets under it, but what you don't get is a list of sub-filesets. In order to get these and only files at the current level, you need to use the PROPFIND command instead of GET. You can read more about PROPFIND here:

http://www.webdav.org/specs/rfc2518.html#METHOD_PROPFIND

It turns out that the Silverlight Streaming API implements the full WebDAV API even though this isn't well documented at this point, so it's helpful to read up on all of the methods available at http://www.webdav.org

If you really need an easier way to upload Deep Zoom images now, drop me a note and I'll give you an early version of my next code drop of SLSExplorer, it works but it needs a bit more work.

Big thanks to Remy Pairault and Eron Wright of the Silverlight Streaming team for their help in getting this working.

Digg It!DZone It!StumbleUponTechnoratiRedditDel.icio.usNewsVineFurlBlinkList
Posted: Sep 07 2008, 15:39 by Bill Reiss | Comments (1) RSS comment feed |
  • Currently 0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5
Filed under:

Related posts

Comments

sohbet said:

sohbetthank u
great post
love u all

# April 29 2009, 07:01