Write a lambda function for an API that accepts a profile picture from the front end. The parameters taken include image data which is a Base64 encoded string and userId. Then, the lambda function forwards the data to a micro service API endpoint that handles the upload. The micro service then determines the status of the upload and the URL of the image, and the lambda function forwards the response from the micro service back to the front end.
Write a lambda function for an API that accepts a profile picture from the front end. The parameters taken include image data which is a Base64 encoded string and userId. Then, the lambda function forwards the data to a micro service API endpoint that handles the upload. The micro service then determines the status of the upload and the URL of the image, and the lambda function forwards the response from the micro service back to the front end.