datasync-blob 1.1.13 → 1.1.15

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.
@@ -96,12 +96,16 @@ class DsBlob extends _react.Component {
96
96
  storeImageToImg = e => {
97
97
  var image = document.createElement('img');
98
98
  image.onload = this.reduceImage;
99
+ console.log("storeImageToImg:e.currentTarget.result = ", e.currentTarget.result);
100
+ alert("storeImageToImg !");
99
101
  image.src = e.currentTarget.result;
100
102
  };
101
103
 
102
104
  //-----------------------------------------------------------------------------------------------------------------------------------------
103
105
  readImageAsBase64 = async aPictureFile => {
104
106
  let _reader = new FileReader();
107
+ console.log("readImageAsBase64:aPictureFile = ", aPictureFile);
108
+ alert("readImageAsBase64 !");
105
109
  _reader.onload = this.storeImageToImg;
106
110
  _reader.readAsDataURL(aPictureFile); //The readAsDataURL() method of the FileReader interface is used to read the contents of the specified file's data as a base64 encoded string.
107
111
  };
@@ -109,6 +113,8 @@ class DsBlob extends _react.Component {
109
113
  //-----------------------------------------------------------------------------------------------------------------------------------------
110
114
  readImageAsBinary = async aPictureFile => {
111
115
  let _reader = new FileReader();
116
+ console.log("readImageAsBinary:aPictureFile = ", aPictureFile);
117
+ alert("readImageAsBinary !");
112
118
  _reader.onload = this.storeImageToImg;
113
119
  _reader.readAsArrayBuffer(aPictureFile); //The readAsArrayBuffer() method reads the file as genuine binary content without base64 conversion.
114
120
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "datasync-blob",
3
- "version": "1.1.13",
3
+ "version": "1.1.15",
4
4
  "description": "Datasync Blob component",
5
5
  "main": "./dist/components/DsBlob.js",
6
6
  "files": [