草庐IT

awss3transfermanager

全部标签

ios - 获取对 AWSS3 对象的引用

我正在将照片从我的iOS应用程序成功上传到AmazonS3。我需要获取该照片的可公开访问的URL。我没有手动构建URL,而是使用以下方法。lettransferManager=AWSS3TransferManager.defaultS3TransferManager()transferManager.upload(uploadRequest).continueWithBlock{taskinifleterror=task.error{print("Uploadfailed:\(error.code)-\(error.localizedDescription)")}ifletexcept

ios - AWS S3 分段上传在后台太慢 - iOS

我在我的iOS应用程序中使用AWSS3TransferUtility的uploadUsingMultipart(fileURL,bucket,...)函数将视频文件上传到S3存储桶。只要应用程序处于前台,上传就会非常快。但是,一旦应用程序进入后台,上传过程就会非常缓慢,并且需要花费太多时间才能完成。例如,我在互联网连接上使用100MB的文件进行了测试,上传速度为10Mbps,当应用程序在前台时使用multipart上传需要35秒,但上传同一文件需要14分40秒当应用程序在后台时使用multipart。有没有办法在后台加快上传过程? 最佳答案

ios - 将 jpg 上传到 S3 : "The request body terminated unexpectedly"

我遇到了S3问题。经过3小时的故障排除(与此同时,我了解了IAM角色并设法创建了它们)我无法尝试将Facebook个人资料图片上传到亚马逊S3。我的代码:ifletimageData=NSData(contentsOf:NSURL(string:url)as!URL){letfileName=ProcessInfo.processInfo.globallyUniqueString+".jpg"letfileURL=NSURL(fileURLWithPath:NSTemporaryDirectory()).appendingPathComponent(fileName)letimage=

ios - AWSS3GetObjectRequest.ifModifiedSince 似乎不起作用

我无法让ifModifiedSince工作。这是我的代码:funcupdateDatabase(){letobjectRequest=AWSS3GetObjectRequest()objectRequest?.key="wa/wa2016/idahoGmu.tiff"objectRequest?.bucket=bucketNameletdateComponents=NSDateComponents()dateComponents.day=10dateComponents.month=4dateComponents.year=2018letdate=NSCalendar.current.

java - AWS SDK for S3 中的 TransferManager 是否在执行异步 I/O?

我一直在阅读TransferManager在用于执行S3上传的亚马逊AWSSDK中,提供的API允许非阻塞使用,但我不清楚底层实现是否真的执行异步I/O。我在source-codeofTransferManager上做了一些阅读我无法理解提供的ExecutorService中的线程是否被阻塞。我的问题是,如果这个管理器实际上在不阻塞那个执行器的情况下执行异步I/O,那么我可以使用应用程序的全局线程池,它是为CPU绑定(bind)的东西准备的。那么这实际上是在进行异步I/O吗? 最佳答案 在分析并尝试理解SDK的源代码后,我得出的结论

ios - AWSS3 区域/plist 配置问题 'The service configuration is ` nil`

我在使用AWSS3时遇到了一个奇怪的问题。设置:AWS移动中心认知动态数据库中三-->Cognito、Dynamo甚至S3(通过Cognito用户数据)工作。但是我现在尝试使用以下代码直接连接到AWS3:"lettransferManager=AWSS3TransferManager.default()letuploadRequest=AWSS3TransferManagerUploadRequest()uploadRequest?.bucket="XXXXXXXXXXXX"uploadRequest?.key="user-data/"+awsId!+"/primary_profile

ios - AWSS3 区域/plist 配置问题 'The service configuration is ` nil`

我在使用AWSS3时遇到了一个奇怪的问题。设置:AWS移动中心认知动态数据库中三-->Cognito、Dynamo甚至S3(通过Cognito用户数据)工作。但是我现在尝试使用以下代码直接连接到AWS3:"lettransferManager=AWSS3TransferManager.default()letuploadRequest=AWSS3TransferManagerUploadRequest()uploadRequest?.bucket="XXXXXXXXXXXX"uploadRequest?.key="user-data/"+awsId!+"/primary_profile

amazon-web-services - 如何使用 golang 从 AWS S3 下载

我正在编写一个go函数来从AWSS3存储桶下载文件。funcDownloadFromS3Bucket(){bucket:="cellery-runtime-installation"item:="hello-world.txt"file,err:=os.Create(item)iferr!=nil{fmt.Println(err)}deferfile.Close()//Initializeasessioninus-west-2thattheSDKwillusetoload//credentialsfromthesharedcredentialsfile~/.aws/credential

amazon-web-services - 如何使用 golang 从 AWS S3 下载

我正在编写一个go函数来从AWSS3存储桶下载文件。funcDownloadFromS3Bucket(){bucket:="cellery-runtime-installation"item:="hello-world.txt"file,err:=os.Create(item)iferr!=nil{fmt.Println(err)}deferfile.Close()//Initializeasessioninus-west-2thattheSDKwillusetoload//credentialsfromthesharedcredentialsfile~/.aws/credential

ios - AWS/iOS 开发工具包 : when should I use AWSS3TransferManager and AWSS3TransferUtility?

在AmazonS3iOSSDK中,AWSS3TransferManager和AWSS3TransferUtility在用法上有什么区别?这是文档对AWSS3TransferManager的描述:HighlevelutilityformanagingtransferstoAmazonS3.S3TransferManagerprovidesasimpleAPIforuploadinganddownloadingcontenttoAmazonS3,andmakesextensiveuseofAmazonS3multipartuploadstoachieveenhancedthroughput