Knowledgebase: QB Assistance
Is it possible to access direct URL of a public image using blob id?
Posted by on 06 March 2014 01:30 PM

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

 

(1 vote(s))
Helpful
Not helpful

Comments (0)
Post a new comment
 
 
Full Name:
Email:
Comments: