Import Picture into Excel Worksheet

This REST API imports picture data into an Excel worksheet.

The request is an HTTP request with multipart content (see RFC 2046 or RFC 1341). The first part of the multipart content contains the ImportPictureOption data and the second part contains the picture file.

REST API

POST https://api.aspose.cloud/v3.0/cells/import
POST https://api.aspose.cloud/v3.0/cells/{name}/importdata

The important parameters are described in the following table:

ImportPictureOption

Parameter Name Type Description
UpperLeftRow int Row index of the upper‑left corner where the picture will be placed.
UpperLeftColumn int Column index of the upper‑left corner where the picture will be placed.
LowerRightRow int Row index of the lower‑right corner that defines the picture’s bounds.
LowerRightColumn int Column index of the lower‑right corner that defines the picture’s bounds.
Filename string Name of the picture file.
Data string Base64‑encoded binary data of the picture.
DestinationWorksheet string Name of the worksheet where the picture will be inserted.
IsInsert string true to insert the picture; false to replace existing content.
ImportDataType string Type of data being imported (e.g., Picture, IntArray, DoubleArray, StringArray, TwoDimensionIntArray, TwoDimensionDoubleArray, TwoDimensionStringArray, BatchData, csvData).
Source FileSource Indicates the data file’s location when the BatchData parameter is null.

Example

Cloud SDK Family

Using an SDK is the best way to accelerate development. An SDK handles low‑level details so you can focus on your project tasks. Please check out the GitHub repository for a complete list of Aspose.Cells Cloud SDKs.

The following code examples demonstrate how to call Aspose.Cells web services using various SDKs: