Socket.IO-Client-Swift
Socket.IO-Client-Swift copied to clipboard
How to upload image to server
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