Closed santoshkumar611 closed 7 years ago
The file content is yielded to the block. Example:
dropbox_client = DropboxApi::Client.new
File.open("local_file", "w") do |f|
dropbox_client.download "/photo.jpg" do |chunk|
f.write chunk
end
end
Hi @Jesus, this worked but needs force encoding currently.
dropbox_client = DropboxApi::Client.new
File.open("local_file", "w") do |f|
dropbox_client.download "/photo.jpg" do |chunk|
f.write chunk.force_encoding("UTF-8")
end
end
when downloading file, metadata of file object was generated but file content not generated , I searched methods on the file metadata object but i can't succed.