nuclearace / Socket.IO-Client-Swift

socket.io-client for Swift
Other
361 stars 53 forks source link

How to upload image to server #133

Open patriksharma opened 7 years ago

patriksharma commented 7 years ago

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