Posts

Showing posts from July, 2020

Converting base64 bit to a file. Used for images

add this function to tour ts file immediatly after imports function base64toBlob(base64Data, contentType) {   contentType = contentType || '';   const sliceSize = 1024;   const byteCharacters = atob(base64Data);   const bytesLength = byteCharacters.length;   const slicesCount = Math.ceil(bytesLength / sliceSize);   const byteArrays = new Array(slicesCount);   for (var sliceIndex = 0; sliceIndex < slicesCount; ++sliceIndex) {     const begin = sliceIndex * sliceSize;     const end = Math.min(begin + sliceSize, bytesLength);     const bytes = new Array(end - begin);     for (let offset = begin, i = 0; offset < end; ++i, ++offset) {       bytes[i] = byteCharacters[offset].charCodeAt(0);     }     byteArrays[sliceIndex] = new Uint8Array(bytes);   }   return new Blob(byteArrays, { type: contentType }); } example:   onImagePicked ( imageData :  string  |  File ){      let   imageFile ;      if  (  typeof   imageData  ===  'string' ){       try {         imageFile  =  ba

weblogic windows JPS-01050: Opening of wallet based credential store failed. Reason java.io.IOException: Failed to lock cwallet.sso.lck

Integreated weblogic serer cannot be started and retuen this error weblogic windows JPS-01050: Opening of wallet based credential store failed. Reason java.io.IOException: Failed to lock cwallet.sso.lck Solution is simple  just remove the cwallet.sso file and cwallet.sso.lck located in C:\Users\tarek.DHAMAN\AppData\Roaming\JDeveloper\system12.2.1.4.42.190911.2248\o.jdeveloper.rescat2.model Then open jevveloper again and start weblogic again