fix base64encode
This commit is contained in:
@@ -183,7 +183,7 @@ function smartsend(
|
|||||||
# Decision: Direct vs Link
|
# Decision: Direct vs Link
|
||||||
if payload_size < size_threshold # Check if payload is small enough for direct transport
|
if payload_size < size_threshold # Check if payload is small enough for direct transport
|
||||||
# Direct path - Base64 encode and send via NATS
|
# Direct path - Base64 encode and send via NATS
|
||||||
payload_b64 = Base64.encode(payload_bytes) # Encode bytes as base64 string
|
payload_b64 = Base64.base64encode(payload_bytes) # Encode bytes as base64 string
|
||||||
log_trace(cid, "Using direct transport for $payload_size bytes") # Log transport choice
|
log_trace(cid, "Using direct transport for $payload_size bytes") # Log transport choice
|
||||||
|
|
||||||
env = MessageEnvelope( # Create envelope for direct transport
|
env = MessageEnvelope( # Create envelope for direct transport
|
||||||
|
|||||||
@@ -17,7 +17,7 @@ const FILESERVER_URL = "http://192.168.88.104:8080"
|
|||||||
correlation_id = string(uuid4())
|
correlation_id = string(uuid4())
|
||||||
|
|
||||||
# File path for large binary payload test
|
# File path for large binary payload test
|
||||||
const LARGE_FILE_PATH = "./testFile_large.zip"
|
const LARGE_FILE_PATH = "./testFile_small.zip"
|
||||||
const filename = basename(LARGE_FILE_PATH)
|
const filename = basename(LARGE_FILE_PATH)
|
||||||
|
|
||||||
# Helper: Log with correlation ID
|
# Helper: Log with correlation ID
|
||||||
|
|||||||
Reference in New Issue
Block a user