datasync-blob 1.1.18 → 1.1.19
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -104,7 +104,7 @@ class DsBlob extends _react.Component {
|
|
|
104
104
|
//-----------------------------------------------------------------------------------------------------------------------------------------
|
|
105
105
|
storeBinaryImageToImg = e => {
|
|
106
106
|
var image = document.createElement('img');
|
|
107
|
-
image.onload = this.reduceImage;
|
|
107
|
+
//2Do DEBUG image.onload = this.reduceImage;
|
|
108
108
|
console.log("storeBinaryImageToImg:e.currentTarget.result = ", e.currentTarget.result);
|
|
109
109
|
alert("storeBinaryImageToImg !");
|
|
110
110
|
// Convert ArrayBuffer to Blob URL since image.src cannot accept ArrayBuffer directly
|
|
@@ -117,12 +117,13 @@ class DsBlob extends _react.Component {
|
|
|
117
117
|
image.src = blobUrl;
|
|
118
118
|
|
|
119
119
|
// Clean up blob URL after image loads to prevent memory leaks
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
120
|
+
/* 2Do Debug
|
|
121
|
+
image.onload = (loadEvent) => {
|
|
122
|
+
this.reduceImage(loadEvent);
|
|
123
|
+
URL.revokeObjectURL(blobUrl);
|
|
124
|
+
// Clear the stored image type
|
|
125
|
+
this.currentImageType = null;
|
|
126
|
+
};*/
|
|
126
127
|
};
|
|
127
128
|
|
|
128
129
|
//-----------------------------------------------------------------------------------------------------------------------------------------
|