Start a conversation

Is it possible to access direct URL of a public image using blob id?

Yes, it is possible. You can upload blob and make it public, e.g:

[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;
        }
    }
}


For more information, please visit: Content (quickblox.com)

For example, here is the link to the corresponding section in iOS documentation: Content | iOS SDK | QuickBlox

Choose files or drag and drop files
Was this article helpful?
Yes
No
  1. Maksym Pidhorbunskyi

  2. Posted
  3. Updated

Comments