Click here to Skip to main content
15,433,964 members
Home / Discussions / JavaScript
   

JavaScript

 
AnswerRe: JAVA Assigtment help for 100$ 1h help needed Pin
Richard MacCutchan22-May-22 21:46
mveRichard MacCutchan22-May-22 21:46 
QuestionLookup against a large SharePoint list with CAML Query Pin
Hilario Dsouza6-May-22 9:41
MemberHilario Dsouza6-May-22 9:41 
QuestionReact.Js Pin
Regis Valoch Tangou1-May-22 6:14
MemberRegis Valoch Tangou1-May-22 6:14 
AnswerRe: React.Js Pin
timDeHof3-Jul-22 3:30
MembertimDeHof3-Jul-22 3:30 
QuestionAngular exceljs adding an image gives the error: u.readFile is not a function at exceljs.min.js:3:449768 Angular application Pin
Stephen Holdorf25-Apr-22 8:54
MemberStephen Holdorf25-Apr-22 8:54 
AnswerRe: Angular exceljs adding an image gives the error: u.readFile is not a function at exceljs.min.js:3:449768 Angular application Pin
Richard Deeming25-Apr-22 21:10
mveRichard Deeming25-Apr-22 21:10 
Based on this GitHub issue[^], it looks like addImage can't use the path of an image on the server to generate a file on the client.

The suggested workaround is to load the image as a buffer. The code in the issue uses axios, but you could use the fetch API instead[^]:
JavaScript
const imageSrc = '/assets/images/graph.jpeg';
const response = await fetch(imageSrc);
const buffer = await response.arrayBuffer();
const imageId1 = workbook.addImage({
    buffer: imageBuffer.data,
    extension: 'jpg'
});




"These people looked deep within my soul and assigned me a number based on the order in which I joined."
- Homer

QuestionDisappearing linked drop-down menus Pin
gosipp24-Apr-22 11:59
Membergosipp24-Apr-22 11:59 
AnswerRe: Disappearing linked drop-down menus Pin
Richard MacCutchan24-Apr-22 21:39
mveRichard MacCutchan24-Apr-22 21:39 
GeneralRe: Disappearing linked drop-down menus Pin
gosipp24-Apr-22 21:42
Membergosipp24-Apr-22 21:42 
QuestionReloading a wav file after ended Pin
Burketa219-Apr-22 7:24
MemberBurketa219-Apr-22 7:24 
AnswerRe: Reloading a wav file after ended Pin
Richard Deeming19-Apr-22 21:30
mveRichard Deeming19-Apr-22 21:30 
QuestionHow to convert tagged text into html formatted text? Pin
Alex Dunlop18-Apr-22 19:25
MemberAlex Dunlop18-Apr-22 19:25 
QuestionLoops, someone to help me Pin
FranciscaNunes200412-Apr-22 10:30
MemberFranciscaNunes200412-Apr-22 10:30 
AnswerRe: Loops, someone to help me Pin
Richard MacCutchan12-Apr-22 21:16
mveRichard MacCutchan12-Apr-22 21:16 
AnswerRe: Loops, someone to help me Pin
Member 1562749529-May-22 21:29
MemberMember 1562749529-May-22 21:29 
QuestionReact date formatting Pin
Simon_Whale7-Apr-22 3:25
professionalSimon_Whale7-Apr-22 3:25 
AnswerRe: React date formatting Pin
Peter_in_27807-Apr-22 3:34
professionalPeter_in_27807-Apr-22 3:34 
AnswerRe: React date formatting Pin
Richard Deeming7-Apr-22 4:01
mveRichard Deeming7-Apr-22 4:01 
Questionjava project Pin
Turki F773-Apr-22 15:30
MemberTurki F773-Apr-22 15:30 
AnswerRe: java project Pin
Richard Deeming3-Apr-22 21:26
mveRichard Deeming3-Apr-22 21:26 
QuestionAsync call inside loop finishes later than loop itself Pin
Bohuslav Parenica2-Apr-22 0:51
MemberBohuslav Parenica2-Apr-22 0:51 
AnswerRe: Async call inside loop finishes later than loop itself Pin
Richard Deeming3-Apr-22 21:33
mveRichard Deeming3-Apr-22 21:33 
QuestionTransforming Excel to Html (javascript) Pin
Member 1554681528-Mar-22 0:09
MemberMember 1554681528-Mar-22 0:09 
GeneralMessage Closed Pin
23-Mar-22 19:02
MemberRichardrussel23-Mar-22 19:02 
QuestionMessage Closed Pin
23-Mar-22 19:00
MemberRichardrussel23-Mar-22 19:00 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.