0

当我知道它的 blob.ID 时,有没有办法访问公共图像的直接 URL?

4

1 回答 1

1

您可以上传 blob 并将其公开

[QBContent TUploadFile:file fileName:@"Great Image" contentType:@"image/png" isPublic:YES delegate:self];

// QuickBlox queries delegate
- (void)completedWithResult:(Result *)result{
    // success result
    if(result.success){
        if([result isKindOfClass:QBCFileUploadTaskResult.class]){
            QBCFileUploadTaskResult *res = (QBCFileUploadTaskResult *)result;
            NSString *publicUrl = res.uploadedBlob.publicUrl;
        }
    }
}
于 2013-04-12T07:20:56.660 回答