Socket.IO-Client-Swift icon indicating copy to clipboard operation
Socket.IO-Client-Swift copied to clipboard

How to upload image to server

Open patriksharma opened this issue 9 years ago • 0 comments

Hello ,

I have to upload image to server. this is my payload { type: “IMAGE”, data: { size: Long, name: String, modifiedOn: String, file: ByteArray } }

When i try to send bytearray as NSData of UIImage. Its not working and start showing me binary data.

Bit confused. Didn't found any good example of uploading image to server, please help

patriksharma avatar Oct 21 '16 04:10 patriksharma