Mapp Vision – Saving Captured Images as JPG and Transmitting to MES via REST API

Dear Community,

Description / Background

We are using mapp Vision to capture images from a vision camera in a B&R system.

Currently, when images are captured and stored using mapp Vision, they are saved only in BMP format by default.
For our MES integration, we need to transfer captured images via REST API, and JPG format is required to reduce file size and network bandwidth.

Technical Questions

1. Image Format (BMP → JPG)

  1. Is there a native function or parameter in mapp Vision / Automation Studio that allows captured images to be saved directly as JPG instead of BMP?

  2. If direct JPG saving is not supported:

    • Is there any B&R library, function block, or example for converting BMP images to JPG?

    • Can this be implemented using mapp Vision together with mapp File / mapp Services / mapp Media?

  3. Are there any performance, CPU load, or memory limitations when performing image format conversion on the controller (APC / IPC)?

2. MES Integration via REST API

  1. What is the recommended approach to transmit image files captured by mapp Vision to an external MES system via REST API?

  2. Is it supported to:

    • Read an image file from the controller file system,

    • Encode it (e.g. Base64),

    • And send it via HTTP POST/PUT using mapp Services (HTTP Client / REST)?

  3. Are there any reference projects, sample codes, or application notes for:

    • Image file upload via REST API

    • Binary or Base64 image transfer from a B&R controller?

Hello,

For the second question, check the AsHttp library.

1 Like

Hi @Black_Cho

with the Function Block ViBaseGetImage you are able to save the image as JPG

BR

Vanessa

1 Like

Additionally the use cases for ViBaseGetImage might be useful here.

Use cases: Backing up, displaying or providing the camera image

1 Like