azure-functions-python-worker icon indicating copy to clipboard operation
azure-functions-python-worker copied to clipboard

The .Read Method Returns Partial Data for Big Files

Open yarlanda opened this issue 3 years ago • 0 comments

So I am using the Blob Trigger Functions. When the function is triggered, it reads the blob in question for further processing. Typically the files that are uploaded are 300 KB in size with 3000+ lines and are in XML format. When I use the .read() method to read the file, I only get partial data. Below is my code

def main(myblob: func.blob.InputStream):
    logging.info(f"Python blob trigger function processed blob \n"
                 f"Name: {myblob.name}\n")
    data = {myblob.read()}
    
    logging.info(data)

    return

Github does not allow me to upload an XML file but I can provide one if needed

Am not sure if this is a limitation or that there is another way to do it.

Thanks for your help on this

yarlanda avatar Jun 30 '22 14:06 yarlanda