datasync-blob 1.1.14 → 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,15 @@ 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);
105
108
  alert("readImageAsBase64 !");
106
109
  _reader.onload = this.storeImageToImg;
107
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.
@@ -110,6 +113,7 @@ class DsBlob extends _react.Component {
110
113
  //-----------------------------------------------------------------------------------------------------------------------------------------
111
114
  readImageAsBinary = async aPictureFile => {
112
115
  let _reader = new FileReader();
116
+ console.log("readImageAsBinary:aPictureFile = ", aPictureFile);
113
117
  alert("readImageAsBinary !");
114
118
  _reader.onload = this.storeImageToImg;
115
119
  _reader.readAsArrayBuffer(aPictureFile); //The readAsArrayBuffer() method reads the file as genuine binary content without base64 conversion.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "datasync-blob",
3
- "version": "1.1.14",
3
+ "version": "1.1.15",
4
4
  "description": "Datasync Blob component",
5
5
  "main": "./dist/components/DsBlob.js",
6
6
  "files": [