Click here to Skip to main content
15,905,144 members
Home / Discussions / ASP.NET
   

ASP.NET

 
QuestionFusion Charts Pin
KhandelwalA14-Jun-10 20:56
KhandelwalA14-Jun-10 20:56 
QuestionHow to visualize postback data? Pin
Tridip Bhattacharjee14-Jun-10 20:49
professionalTridip Bhattacharjee14-Jun-10 20:49 
AnswerRe: How to visualize postback data? Pin
Peace ON15-Jun-10 0:57
Peace ON15-Jun-10 0:57 
QuestionExporting Via Asp.net Pin
SreejithKumar M14-Jun-10 20:31
SreejithKumar M14-Jun-10 20:31 
QuestionHow to show Images while sorting master and child Gridviews(Nested Gridview)? Pin
Pawan Kiran14-Jun-10 19:41
Pawan Kiran14-Jun-10 19:41 
QuestionDistributing Web Services on Differing Servers Pin
starcad14-Jun-10 11:39
starcad14-Jun-10 11:39 
AnswerRe: Distributing Web Services on Differing Servers Pin
Manas Bhardwaj14-Jun-10 23:12
professionalManas Bhardwaj14-Jun-10 23:12 
QuestionCan not do putObjectInline operation Using Amazon S3 Pin
vsaratkar14-Jun-10 11:03
vsaratkar14-Jun-10 11:03 
Hi,

I am referncing a Amazon S3 web service, We have access key and secret key.
I want to put a file in the bucket, buckets are created thro' UI

AmazonS3.PutObjectResult myResult   = amazonwsObject.PutObjectInline(BucketName, secretKey, metadata, Filedata, contentLength, null, AmazonS3.StorageClass.STANDARD, True, APIKey, GetTimeStamp(DateTime.Now), True, sign, null)


I am using Following method to calculate Signature:
public string GetSignature(string mySecretAccessKeyId, string strOperation, DateTime myTime)
{
	Text.Encoding myEncoding = new Text.UTF8Encoding();

	// Create the source string which is used to create the digest
	string mySource = ("AmazonS3" + strOperation) + FormatTimeStamp(myTime);


	// Create a new Cryptography class using the
	// Secret Access Key as the key
	Security.Cryptography.HMACSHA1 myCrypto = new Security.Cryptography.HMACSHA1(myEncoding.GetBytes(mySecretAccessKeyId));
	
	// Convert the source string to an array of bytes
	char[] mySourceArray = mySource.ToCharArray();
	// Convert the source to a UTF8 encoded array of bytes
	byte[] myUTF8Bytes = myEncoding.GetBytes(mySourceArray);
	// Calculate the digest
	byte[] strDigest = myCrypto.ComputeHash(myUTF8Bytes);
	return Convert.ToBase64String(strDigest);
}


I could able to see all the buckets created using the same signing method using ListAllBuckets method.
But for putObjectInline method , I am getting soap Exception "Signatures are not matching"

Can anyone please, help me

Vsaratkar
QuestionUpload Asp.Net c# MySQL site Pin
Dot-Net-Dev14-Jun-10 6:04
Dot-Net-Dev14-Jun-10 6:04 
AnswerRe: Upload Asp.Net c# MySQL site Pin
Not Active14-Jun-10 7:20
mentorNot Active14-Jun-10 7:20 
AnswerRe: Upload Asp.Net c# MySQL site Pin
jyoti21014-Jun-10 18:24
jyoti21014-Jun-10 18:24 
AnswerRe: Upload Asp.Net c# MySQL site Pin
Dot-Net-Dev15-Jun-10 4:54
Dot-Net-Dev15-Jun-10 4:54 
QuestionKeyBoard hook Pin
Rajeshwar Code- Developer14-Jun-10 4:06
Rajeshwar Code- Developer14-Jun-10 4:06 
AnswerRe: KeyBoard hook Pin
Brij14-Jun-10 4:15
mentorBrij14-Jun-10 4:15 
QuestionExtract A Pdf File from database Pin
raghvendrapanda14-Jun-10 1:48
raghvendrapanda14-Jun-10 1:48 
AnswerRe: Extract A Pdf File from database Pin
Blue_Boy14-Jun-10 2:07
Blue_Boy14-Jun-10 2:07 
GeneralRe: Extract A Pdf File from database Pin
hammerstein0514-Jun-10 2:15
hammerstein0514-Jun-10 2:15 
GeneralRe: Extract A Pdf File from database [modified] Pin
raghvendrapanda14-Jun-10 3:07
raghvendrapanda14-Jun-10 3:07 
AnswerRe: Extract A Pdf File from database Pin
hammerstein0514-Jun-10 10:37
hammerstein0514-Jun-10 10:37 
GeneralRe: Extract A Pdf File from database Pin
raghvendrapanda17-Jun-10 1:49
raghvendrapanda17-Jun-10 1:49 
QuestionFileUpload Control text Cleared Pin
vishnukamath14-Jun-10 1:46
vishnukamath14-Jun-10 1:46 
AnswerRe: FileUpload Control text Cleared Pin
Not Active14-Jun-10 2:41
mentorNot Active14-Jun-10 2:41 
AnswerRe: FileUpload Control text Cleared Pin
Anurag Gandhi14-Jun-10 3:33
professionalAnurag Gandhi14-Jun-10 3:33 
Questioncall code behind code from java script Pin
Amit Patel198514-Jun-10 1:31
Amit Patel198514-Jun-10 1:31 
AnswerRe: call code behind code from java script Pin
lakshmichawala14-Jun-10 2:05
lakshmichawala14-Jun-10 2:05 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.