i am using django rest framework.problem i am facing is that data in to form to arrray is comming from external api i convert it to tiff formate.How can i store this tiff file in cloudnary.
ndvi_image = rasterio.open(
'ndviimage.tif', 'w', driver='GTiff', height=500, width=500, count=1, dtype='float32', crs='EPSG:4326', transform=rasterio.transform.from_bounds(*box2, 500, 500))
ndvi_image.write(image, 1)
ndvi_image.close()
thru this code tiff file in genrating and save as a ndviimage.tiff file in locally directory.