Could I upload an excel file with an image? #2870

Closed
opened 2023-02-06 14:33:49 +00:00 by ARSHADAMEEN00 · 1 comment

I am trying to upload an excel file with an image, but the image is not showing, I am using the sheet_to_json format

example :

if (e.target.files) {
  const reader = new FileReader()
  reader.onload = e => {
    const data = e.target.result
    const workbook = xlsx.read(data, { type: "array" })
    const sheetName = workbook.SheetNames[0]
    const worksheet = workbook.Sheets[sheetName]
    console.log("worksheet ", worksheet);
    const json = xlsx.utils.sheet_to_json(worksheet)
    console.log("json ", json);
    setUploadedExcelDataAsJson(json)
  }
  reader.readAsArrayBuffer(e.target.files[0])
}
I am trying to upload an excel file with an image, but the image is not showing, I am using the sheet_to_json format example : if (e.target.files) { const reader = new FileReader() reader.onload = e => { const data = e.target.result const workbook = xlsx.read(data, { type: "array" }) const sheetName = workbook.SheetNames[0] const worksheet = workbook.Sheets[sheetName] console.log("worksheet ", worksheet); const json = xlsx.utils.sheet_to_json(worksheet) console.log("json ", json); setUploadedExcelDataAsJson(json) } reader.readAsArrayBuffer(e.target.files[0]) }
Owner

Image support is included in our Pro Image build but not currently in the Community Edition. We do hope to support it at some point but that'll be after "version 1.0.0"

Image support is included in our [Pro Image](https://sheetjs.com/pro/) build but not currently in the Community Edition. We do hope to support it at some point but that'll be after "version 1.0.0"
Sign in to join this conversation.
No Milestone
No Assignees
2 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: sheetjs/sheetjs#2870
No description provided.