Forum Discussion

good_boy's avatar
good_boy
Explorer | Level 4
7 years ago

Upload serialized object

I am using the Dropbox JS SDK in Cordova.

Before upload, I am using msgpack-lite to serialize the object and storing it in a file.bin path.

 

But when I download it, instead of a UInt8Array object it is actually showing the raw file contents. The actual data. Why is that?

 

Because of which I can't decode the blob with msgpack neither can I parse the file with JSON.

  • Greg-DB's avatar
    Greg-DB
    Icon for Dropbox Staff rankDropbox Staff
    The SDK/API should just receive and return the file data exactly as you supply it.

    If this isn't working as expected, please share some sample code and output so we can take a look.

About Dropbox API Support & Feedback

Node avatar for Dropbox API Support & Feedback
Find help with the Dropbox API from other developers.5,950 PostsLatest Activity: 48 minutes ago
352 Following

If you need more help you can view your support options (expected response time for an email or ticket is 24 hours), or contact us on X or Facebook.

For more info on available support options for your Dropbox plan, see this article.

If you found the answer to your question in this Community thread, please 'like' the post to say thanks and to let us know it was useful!