Python - Read blob object in python using wand library Last Updated : 07 Sep, 2021 Summarize Comments Improve Suggest changes Share Like Article Like Report BLOB stands for Binary Large OBject. A blob is a data type that can store binary data. This is different than most other data types used in databases, such as integers, floating point numbers, characters, and strings, which store letters and numbers. BLOB is a large complex collection of binary data which is stored in Database. Basically BLOB is used to store media files like images, video and audio files. Due to its ability to store multimedia files it takes a huge disk space. Also length of BLOB may go upto 2, 147, 483, 647 characters. BLOB provides fast multimedia transfer. To get blob file from image : with open('image_path') as f: image_blob = f.read() To read image from blob in Wand : with Image(blob=image_binary) as img: \\other code Input Image : Code : Python3 # import required libraries from __future__ import print_function # import Image from wand.image module from wand.image import Image # open image using file handling with open('koala.jpeg') as f: # get blob from image file image_blob = f.read() # read image using wand from blob file with Image(blob = image_binary) as img: # get height of image print('height =', img.height) # get width of image print('width =', img.width) Output : height = 300 width = 400 Comment More infoAdvertise with us Next Article Python - Read blob object in python using wand library R RahulSabharwal Follow Improve Article Tags : Python Python-wand Practice Tags : python Similar Reads Reading Python File-Like Objects from C | Python Writing C extension code that consumes data from any Python file-like object (e.g., normal files, StringIO objects, etc.). read() method has to be repeatedly invoke to consume data on a file-like object and take steps to properly decode the resulting data. Given below is a C extension function that 3 min read Reading binary files in Python Reading binary files means reading data that is stored in a binary format, which is not human-readable. Unlike text files, which store data as readable characters, binary files store data as raw bytes. Binary files store data as a sequence of bytes. Each byte can represent a wide range of values, fr 5 min read Python - spread()method in Wand Spread replaces each pixel with the random pixel value found nearby. spread() function is used to apply Spread effect to the image. The size of the area to search for a new pixel can be controlled by defining a radius. Syntax : wand.image.spread(radius, method) Parameters : Parameter Input Type Desc 1 min read Wand | path_vertical_line() in Python path_vertical_line() is another function for path. path_vertical_line() function generates a vertical line from a destination point to a particular y point. It takes only y point upto which line is being drawn. Syntax: wand.drawing.path_vertical_line(to, relative) Parameters: Parameter Input Type De 1 min read Convert Blob Image to PNG and JPG Using Python We are given a task to convert blob images to png and jpg with Python. In this article, we will see how we can convert blob images to PNG and JPG with Python. Convert Blob Image to PNG and JPG With PythonBelow are step-by-step procedures by which we can convert blob images to PNG and JPG with Python 3 min read Like