MCPcopy Create free account
hub / github.com/OpenSIST/OpenSIST.github.io / blobToBase64

Function blobToBase64

src/Data/Common.js:69–78  ·  view source on GitHub ↗
(blob)

Source from the content-addressed store, hash-verified

67}
68
69export function blobToBase64(blob) {
70 return new Promise((resolve, reject) => {
71 const reader = new FileReader();
72 reader.onloadend = () => {
73 resolve(reader.result);
74 };
75 reader.onerror = reject;
76 reader.readAsDataURL(blob);
77 });
78}
79
80export const univAbbrFullNameMapping = univList.reduce((acc, univ) => {
81 acc[univ.abbr] = univ.fullName;

Callers 2

syncApplicantFileFunction · 0.90
uploadAvatarFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected