Export Picture
You can export pictures to the following formats: PNG, GIF, JPEG, BMP, SVG, TIFF, EMF, and WMF.
REST API
POST https://api.aspose.cloud/v3.0/cells/export
Security and Authentication
The Aspose.Cells Cloud APIs are secure and require JWT token-based authentication.
Request Parameters
| Parameter | Location | Type | Required | Description |
|---|---|---|---|---|
file |
Form‑data | file | Yes | The Excel workbook (.xlsx, .xls, etc.) that contains the OLE objects. |
outputFormat |
Query | string | Yes | Target format for the exported objects (pdf, png, jpeg, docx, pptx). |
objectType |
Query | string | Yes | Fixed value oleobject. |
Response
{
"Files": [
{
"Filename": "Book1_xlsx_Sheet6_Pictures_0.tif",
"FileSize": 21680,
"FileContent": "-----Base64String--------"
},
{
"Filename": "Book1_xlsx_Sheet6_Pictures_1.tif",
"FileSize": 21286,
"FileContent": "-----Base64String--------"
},
{
"Filename": "myDocument_xlsx_Sheet2_Pictures_0.tif",
"FileSize": 130084,
"FileContent": "-----Base64String--------"
},
{
"Filename": "myDocument_xlsx_Sheet2_Pictures_1.tif",
"FileSize": 120062,
"FileContent": "-----Base64String--------"
}
]
}
HTTP Status Codes
| Code | Meaning | Description |
|---|---|---|
| 200 | OK | Filter applied successfully; response contains operation details. |
| 400 | Bad Request | Missing or invalid parameters (e.g., unsupported file type). |
| 401 | Unauthorized | Invalid or missing JWT token. |
| 413 | Payload Too Large | Uploaded file exceeds size limit. |
| 500 | Internal Server Error | Unexpected server error. |
How to Use the PostExport API with SDKs
PostExport API Specification
The OpenAPI Specification defines a publicly accessible programming interface and lets you carry out REST interactions directly from a web browser.
You can use the cURL command‑line tool to access Aspose.Cells web services easily. The following example shows how to make a call to the Cloud API with cURL.
curl -X POST "https://api.aspose.cloud/v3.0/cells/export?objectType=picture&format=tiff" \
-H "accept: multipart/form-data" \
-H "Content-Type: multipart/form-data" \
-H "x-aspose-client: Containerize.Swagger" \
-d '{"File":{}}'
Use Aspose.Cells Cloud SDKs
Using an SDK is the most efficient way to accelerate development. An SDK handles low‑level details so you can focus on your project logic. Please check 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: