lundi 27 avril 2015

How can I send a picture about 100kb in size to a PubNub channel in iOS SDK?


What I was doing, converting the whole image to base64 string and sending it as a message. But message sending failed each time. I got maximum payload size is 32 KB for a single PubNub message here. If I compress the image and so that my message size is less than 32 KB, will it be delivered? Is there any other API available from PubNub SDK to upload or streaming a file/image to a channel?


Aucun commentaire:

Enregistrer un commentaire