Click here to Skip to main content
15,908,661 members

Comments by IncredibleRam (Top 10 by date)

IncredibleRam 28-Mar-12 2:08am View    
might got the answer with the help of frndz i think: (This might be the way to do that)

Public Shared Sub CheckUserFolderSize(ByVal s3Client As AmazonS3, ByVal bucketName As String, ByVal folderName As String)

Try
Using (s3Client)

Dim totalFileSize As Long
Dim maxSize As Long = 1.0
'assuming your delimiter is a /
Dim Lor As New ListObjectsRequest() With { _
.BucketName = bucketName, _
.Prefix = folderName, _
.Delimiter = "/" _
}

Dim response1 As ListObjectsResponse = s3Client.ListObjects(Lor)

For Each s3Object As S3Object In response1.S3Objects
totalFileSize += s3Object.Size()
Next

If totalFileSize > maxSize Then

End If
End Using
Catch ex As Exception

End Try

End Sub

here Folder name is the prefix, as we don't have the directory structure in the Amazon S3.
Thanks and Regards.
IncredibleRam 25-Jan-12 6:40am View    
Thanks for the reply but is the Acrobat SDK available for the Web environment and is that ok if we can use it (Is it legal). there is a comment in the same article you posted "
WARNING: This is illegal ! "
IncredibleRam 14-May-11 2:02am View    
did you try following
SqlCommand cmd = new SqlCommand("select max(member_id) from" + tblName.Trim () + "", con);

instead of :

SqlCommand cmd = new SqlCommand("select max(member_id) from tblName", con);
IncredibleRam 8-May-11 10:24am View    
pleasure is all mine but sorry for the delay this is not suppose to last this much long.
IncredibleRam 8-May-11 1:58am View    
is there anything wrong with what i had wrote above (as this is what i know), just curious to know more on this concept.
best regards