Resources



Sample Code and Libraries

Amazon S3 Bucket Browser with DIME support in C#

Click for a printer friendly version of this document Printer Friendly Save to del.icio.us
Average Review:

Curious how to use DIME with Amazon S3? This code sample demonstrates how to call the Amazon S3 PutObject method via a SOAP request with a DIME attachment.

Submitted By: Justin@AWS  
AWS Products Used: Amazon S3
Language(s): C#, JavaScript/AJAX
License: New BSD

About This Sample

  • This simple bucket browser will both put and get an object via a DIME attachment.
  • Also included are some basic AJAX features to showcase how easy it is to use the new extensions.
  • Please keep in mind, however, that the main reason for this sample is to demonstrate how to make an Amazon S3 request that includes a DIME attachment.
  • The proxy class used in this sample was generated from the Amazon S3 API, Version 2006-03-01
  • The C# libraries have been included in this sample with a few tweaks to support WSE 2.0 DIME attachments.
  • See the related tech. note below for more information about using WSE 2.0 DIME attachments with Amazon S3

Prerequisites

Running the Sample

  1. Ensure all prerequisites are installed.
  2. Open S3BrowserVS2005WSE20AJAX10.sln in Visual Studio.
  3. Update web.config to include your own AWS Developer Keys.
  4. Browse to S3Browser.aspx.


Related Documents
Type: Tech. Notes Tech. Note: How to use PutObject with WSE 2.0 DIME attachments

Discussion
Click to start a discussion on this document Create a New Discussion
No discussion has been created for this document.

Reviews
Create Review Write a Review

Really Helpful, Mar 28, 2007 4:37 PM
Reviewer: robertjneal
This is a sweet little app that really helps show how to use DIME with S3. However the app settings are set up for 2Gb of data transfer, but only one minute timeout. If you have a problem with timeouts make sure you update the web.config and modify the timeout property of your instance of the AmazonS3 object. Also, I didn't have the Web Application Project installed which is required for this code sample. If you have unsupported project type errors in Visual Studio make sure you download this. Other than that I think this was a really well made code sample.

Notes on running under Vista, Oct 14, 2007 10:19 AM
Reviewer: donalvarez
If you are trying to run the sample under Vista, you need to use WSE 2 SP3 instead of SP2. You will probably also want to create a new web project since the one in this sample is configured for IIS6 and Vista runs IIS7. Open the solution, ignore the errors, and add a new project to the solution (Visual C#/ASP.NET AJAX-Enabled Web Application, you must have the Microsoft ASP.NET AJAX etensions installed to be able to see that type of project template). Then copy main.css, main.js, the S3Browser files, and the images directory into the new project directory and add the files to your project. Do not copy the web.config file but do copy the appSettings section of the old web.config into your new web.config. Then remove the old web project from your solution, set the new project as your startup project and S3Browser.asp as your startup page and and you should be good to go.

Amazon S3 Bucket Browser with DIME support in C#, Jul 10, 2008 5:53 PM
Reviewer: shiping2008
That is helpful, but how about Java Client? It would be grateful if you could provide any example or advices for java clients to upload/download using DIME . Please let me know via shipingChen2005@gmail.com. Thanks!
Welcome, Guest Help
Login Login