Skip to content

Instantly share code, notes, and snippets.

@xlight05
Last active October 18, 2022 07:01
Show Gist options
  • Save xlight05/71e9485a480cc81bbf0519b78432bc79 to your computer and use it in GitHub Desktop.
Save xlight05/71e9485a480cc81bbf0519b78432bc79 to your computer and use it in GitHub Desktop.
import ballerina/http;
import ballerinax/azure_functions as af;
listener af:HttpListener ep = new ();
service /reviews on ep {
resource function post upload(@http:Payload byte[]|error image, string name) returns @af:BlobOutput {path: "images/{Query.name}"} byte[]|error {
return image;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment