Skip to content

[FEATURE] Possibility to get the Base64 representation of a BLOB from the API #879

@BlackRose01

Description

@BlackRose01

Is your feature request related to a problem? Please describe.
I have some AAS files in JSON format. Each AAS contains a BLOB dataelement for the ProductImage (similar to Submodel TechnicalData). When I use the BaSyx AAS SM Repository to get the value of the BLOB dataelement via REST I receive the raw binary value in JSON. Here is it currently (for me) not possible to store the file in the required format.

Describe the solution you'd like
I would like to have an option to choose if I would like receive the Base64 representation of the BLOB dataelement in base64 (stored in file) or as decoded presentation (currently response).

Alternative Idea
An additional endpoint to request BLOB dataelements in Base64 or as decoded value.

Example:
/submodels/{submodelIdentifier}/submodel-elements/{idShortPath}/$value?blob_in_base64=true

Example File
full_AAS_Trims_S07EA.json

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    Status

    To triage

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions