1
0
mirror of https://github.com/thooge/esp32-nmea2000-obp60.git synced 2025-12-29 13:33:06 +01:00

HTTP request for PageNavigation

This commit is contained in:
norbert-walter
2025-11-25 22:38:08 +01:00
parent f77107616d
commit 16f9f9217d
8 changed files with 1158 additions and 8 deletions

View File

@@ -0,0 +1,14 @@
#include "ImageDecoder.h"
#include <mbedtls/base64.h>
// Decoder for Base64 content
bool ImageDecoder::decodeBase64(const String& base64, uint8_t* outBuffer, size_t outSize, size_t& decodedSize) {
int ret = mbedtls_base64_decode(
outBuffer,
outSize,
&decodedSize,
(const unsigned char*)base64.c_str(),
base64.length()
);
return (ret == 0);
}