in emulatedtests/src/main/java/com/microsoft/azure/functions/endtoend/BlobTriggerSdkTypesTests.java [20:35]
public void BlobTriggerToBlobTest_BlobClient(
@BlobTrigger(name = "triggerBlob", path = "test-triggerinput-blobclient/{name}", dataType = "binary") BlobClient triggerBlobClient,
@BindingName("name") String fileName,
@BlobOutput(name = "outputBlob", path = "test-output-java-new/testfile.txt", dataType = "binary") OutputBinding<byte[]> outputBlob,
final ExecutionContext context
) {
context.getLogger().info("BlobTriggerUsingBlobClient triggered for blob: " + fileName);
// Download the blob content
ByteArrayOutputStream outputStream = new ByteArrayOutputStream();
triggerBlobClient.downloadStream(outputStream);
// Set the downloaded content as output
outputBlob.setValue(outputStream.toByteArray());
context.getLogger().info("Uploaded blob " + fileName + " to container test-output-java-new/testfile.txt");
}