diff --git a/src/jio.storage/localstorage.js b/src/jio.storage/localstorage.js
index d71aa88d7afc70a888aeffc95979252b8958abc1..bc6445d423ca34dde7189353e83fc2f8d97fa695 100644
--- a/src/jio.storage/localstorage.js
+++ b/src/jio.storage/localstorage.js
@@ -314,7 +314,7 @@
     for (i = 0; i < binarystring.length; i += 1) {
       uint8array[i] = binarystring.charCodeAt(i); // mask `& 0xFF` not necessary
     }
-    uint8array = new Blob([uint8array], {
+    uint8array = new Blob([uint8array.buffer], {
       "type": doc._attachments[param._attachment].content_type || ""
     });