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

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

isPublic

@property (nonatomic) BOOL isPublic
Discussion

File’s visibility

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

name

@property (nonatomic, retain) NSString *name
Discussion

File name

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

status

@property (nonatomic) enum QBCBlobStatus status
Discussion

Status of the File

Declared In

QBCBlob.h

tags

@property (nonatomic, retain) NSString *tags
Discussion

Coma separated string with file’s tags

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

statusFromString:

+ (enum QBCBlobStatus)statusFromString:(NSString *)status

statusToString:

+ (NSString *)statusToString:(enum QBCBlobStatus)status

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