upload - how to convert .pdf file to base64 string in swift 2.0? -
i have upload document in swift , have using icloud , can upload file server using icloud
swift 3.x
let filepath = ... //url of pdf let filedata = try data.init(contentsof: filepath!) let filestream:string = filedata.base64encodedstring(options: nsdata.base64encodingoptions.init(rawvalue: 0))
Comments
Post a Comment