Skip to Content
0
Dec 04, 2012 at 08:01 AM

Uploading a image file from iOS to Server using sup 2.1.3 (supBigbinary)

48 Views

Hi All,

I am currently developing an application which uploads document on the backend from iOS through SUP. I am using SUPBigBinary format for the same. I am currently on SUP 2.1.3. The code that I am using is as follows:

NSData *data = UIImageJPEGRepresentation([UIImage imageNamed:@"select.png"],  0.0);SUPBigBinary *img = nil;[img openForWrite:[data length]];[img write: data];[img close];

When I put NSLog for data i get memory addresses for the Binary but, for SUPBigBinary I am getting (null) also, when I use create method and push data to back-end i get value in BigBinary as "0x".

According to me, Back-end part will come later in the picture, main issue is NSData is not getting transferred to SUPBigBinary [i.e. from data to img].

Please help me out in this, it's real urgent.

Thanks in advance.

Regards,

Saurabh