Inherits from | QBCEntity : NSObject |
Conforms to | NSCoding NSCopying |
Declared in | QBCBlob.h |
Overview
This class represents File in Content module. Limitations: max size of file is 5368709120 bytes (5 GB).
Tasks
-
contentType
Content type in mime format
property -
name
File name
property -
status
Status of the File
property -
completedAt
Date when the file upload has been completed
property -
size
The size of file in bytes, readonly
property -
UID
File unique identifier
property -
lastReadAccessTs
Last read file time
property -
lifetime
Time that file will live after delete, in seconds
property -
blobObjectAccess
An instance of BlobObjectAccess
property -
refCount
File’s links count
property -
tags
Coma separated string with file’s tags
property -
isPublic
File’s visibility
property -
isNew
Set as YES if you want to updated blob’s file
property -
+ blob
Create new blob
-
– publicUrl
Get file’s public url (available within Internet), if blob is public.
-
+ publicUrlForUID:
Get file’s public url (available within Internet) by UID.
-
+ publicUrlForID:
Get file’s public url (available within Internet) by ID.
-
– privateUrl
Get file’s private url (available only with QuickBlox token), if blob is private.
-
+ privateUrlForID:
Get file’s private url (available only with QuickBlox token) by ID.
-
+ statusFromString:
-
+ statusToString:
Properties
UID 
@property (nonatomic, retain) NSString *UID
Discussion
File unique identifier
Declared In
QBCBlob.h
blobObjectAccess 
@property (nonatomic, retain) QBCBlobObjectAccess *blobObjectAccess
Discussion
An instance of BlobObjectAccess
Declared In
QBCBlob.h
completedAt 
@property (nonatomic, retain) NSDate *completedAt
Discussion
Date when the file upload has been completed
Declared In
QBCBlob.h
contentType 
@property (nonatomic, retain) NSString *contentType
Discussion
Content type in mime format
Declared In
QBCBlob.h
isNew 
@property (nonatomic) BOOL isNew
Discussion
Set as YES if you want to updated blob’s file
Declared In
QBCBlob.h
lastReadAccessTs 
@property (nonatomic, retain) NSDate *lastReadAccessTs
Discussion
Last read file time
Declared In
QBCBlob.h
lifetime 
@property (nonatomic) NSUInteger lifetime
Discussion
Time that file will live after delete, in seconds
Declared In
QBCBlob.h
refCount 
@property (nonatomic) NSUInteger refCount
Discussion
File’s links count
Declared In
QBCBlob.h
size 
@property (nonatomic) NSUInteger size
Discussion
The size of file in bytes, readonly
Declared In
QBCBlob.h
Class Methods
blob 
+ (QBCBlob *)blob
Discussion
Create new blob
Return Value
New instance of QBCBlob
Declared In
QBCBlob.h
privateUrlForID: 
+ (NSString *)privateUrlForID:(NSUInteger)ID
Discussion
Get file’s private url (available only with QuickBlox token) by ID.
Return Value
Private url to file
Declared In
QBCBlob.h
publicUrlForID: 
+ (NSString *)publicUrlForID:(NSUInteger)ID
Discussion
Get file’s public url (available within Internet) by ID.
Return Value
Public url to file
Declared In
QBCBlob.h
publicUrlForUID: 
+ (NSString *)publicUrlForUID:(NSString *)UID
Discussion
Get file’s public url (available within Internet) by UID.
Warning: Deprecated in 2.3. Use ‘[QBCBlob publicUrlForID:]’ instead.
Return Value
Public url to file
Declared In
QBCBlob.h
Instance Methods
privateUrl 
- (NSString *)privateUrl
Discussion
Get file’s private url (available only with QuickBlox token), if blob is private.
Return Value
Private url to file
Declared In
QBCBlob.h
publicUrl 
- (NSString *)publicUrl
Discussion
Get file’s public url (available within Internet), if blob is public.
Return Value
Public url to file
Declared In
QBCBlob.h