Multiple image upload python api

on with Leave a reply

Let’s just create python api to upload multiple images to server. I am going to upload image from the base64 string that is posted from the json data. I am using web.py to create the python multi image upload web service.

#upload.py
import web
import json
import base64

urls = (
    '/uploads/', 'uploads'
)

class uploads:
    def GET(self):
        return "yep!"
    def POST(self):
        json_input = web.data();
        user_input = json.loads(json_input)
        print user_input
        return "success"

if __name__ == "__main__":
    app = web.application(urls, globals())
    app.run()

In the above code we are using the three modules web, json, base64. web.data() is used to receive the raw data from the http post request in JSON format. json.loads() is helping to parse the JSON string in python.

Here is the complete code to do the multiple image upload

#upload.py
import web
import json
import base64

urls = (
    '/uploads/', 'uploads'
)

class uploads:
    def GET(self):
        return "yep!"
    def POST(self):
        try:
            json_input = web.data();
            user_input = json.loads(json_input)
            documents = user_input["documents"]
            
            for document in documents:
                filename = document["file_name"]
                imgData = document["content"].decode('base64')
                fout = open(filename, "wb")
                fout.write(imgData)
                fout.close()
            jreturn = {"status":"success"}
            return json.dumps(jreturn)
        except Exception as e:
            jreturn = {"status":"error","message":"Exception : "+ str(e)}
            return json.dumps(jreturn)           


if __name__ == "__main__":
    app = web.application(urls, globals())
    app.run()

Sample request :

You may do sample request throw post man

{
    "documents": [
        {
            "content": "/9j/4AAQSkZJRgABAQAAAQABAAD/2wCEAAkGBwgHBgkIBwgKCgkLDRYPDQwMDRsUFRAWIB0iIiAdHx8kKDQsJCYxJx8fLT0tMTU3Ojo6Iys/RD84QzQ5OjcBCgoKDQwNGg8PGjclHyU3Nzc3Nzc3Nzc3Nzc3Nzc3Nzc3Nzc3Nzc3Nzc3Nzc3Nzc3Nzc3Nzc3Nzc3Nzc3Nzc3N//AABEIAIoAigMBEQACEQEDEQH/xAAcAAABBQEBAQAAAAAAAAAAAAAAAQIEBQYDBwj/xABNEAACAQQABAMEBAgICwkAAAABAgMABAURBhIhMRNBURQiMmEHgZGhFRYzQlJTcbEjcnWCkpWy0yQ1NjdidLPBwtHwCCY0Q1Zzk6Kj/8QAGwEBAAIDAQEAAAAAA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7i91H6IoQdJbeHmb+Bj66Hwjto0JHy28GmHgx6HYcooQIY0B6Iv2VIP/2Q==",
            "file_name": "test.jpg"
        },
        {
            "content": "iVBORw0KGgoAAAANSUhEUgAAAT0AAACfCAMAAAC85v7+AAAAkFBMVEX///8AAAD6+vrs7Oz39/fz8/O7u7vMzMzd3d2/v79ubm74+Pjj4+Pu7u6NjY3m5uawsLCZmZnV1dV5eXmMjIyioqJVVVXHx8ezs7NjY2OFhYWcnJzX19eUlJSnp6dmZmZHR0c1NTUgICAYGBhbW1s+Pj4vLy9zc3M3NzdMTEwoKCgRERF/f38cHBwLCwskJCTsg6HHAAAcFElEQVR4nO1daWOqPNM2IGtBkB0ERMWd2v//714StgATF9qePn3vzodzLCKEySzXLAmz2R/90R/90R/90R/90R/9ZrL81RElghyclVR7cK6hWLokBlbiBKkuyeR0IQ6Wtir6SqL48xlniaYoJQvXXSbZOQr8NJB8X1kly1UsWzGvz/iZ9ug2z5HG8xz/hkcw42NZly13uVgul6LvW75lGbqv6ZosKeZykfra7O3T93sTZnoqxoYiK4EThuExDNEN9ci+82TCGY1oexsfe4LOnr32jovjelv+8V5eV/XUZGGmaewbhmTI955CjhXHOTu7+lIvDCBfh3myOkRFYi+SRAyCQAnieCUq5RQbhmxJ5aeF6i4SR5EksRyGpssGZggvaOblqVssWKPmh2fuoJ9/EWVeaC8XC9UO1+ioRoGjhsfLPsvCjHHXj5KLBzXE5K2P6zC7Vsev41O/YtyXMNyH24ubmrcLupVT7wc2+cJgcC/HD6WqZ9V1JeW4Thb23tvtQjtQLF7gJbOITu/bzI4KJ3LdaKFIvqKYkiiuFDFOJb/UYMlNI3vhpsfIXl+zd7S9qPZ6ecw3xTLfe2pJ3sZ730JPTNM+KsIk8KW5ZGmargslzedYgQfElQfn5NNc0wRdUiIzWCaLCIVoi7anw+Z2eN9s0bo4VDc8lYqwRR9oV377vtmFpYpsdx9YO/blscPBXjmiJEmxqEgcfR+9uZ9fyqcCM89HyOPgr76a3t4MzTdF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zLOwwQxvGbL1E59Ou1BQ1Xybl/M7mWquyvBQkixM8ZzB9sEV1+PLHfG33D72HReobwr/MZXHCTJgHouuUyhd62XvmqaW5DFwnTe3UWsWaLklukoU23glpW0ra+/qwybIsLNxA4onbesaq6vJcFt1lsnLtwllF3nrtqaGt2uqBaNvH9qDaHlLvwhLFPgCquQmTVIpFWdP+t4M5vv3nS0m4b3wHJFuK5DqmpbhRpMjyf7TS9kd/9Ed/9Ed/9Ed/9Ed/9Ed/9IP0fwQpjTA1MPwOAAAAAElFTkSuQmCC",
            "file_name": "test-2.png"
        }
    ]
}

Hope it saves someone time.

 

 

Posted in Python and tagged , , by .

About Gowri

I am professional web developer with 4+ years experience. PHP, jQuery, WordPress, Magento and Symfony2 are my key skills in web development. I am working with strong enthusiastic team with spirit. We provide all web related solution like HTML/CSS development, Web graphic design and Logo.

Leave a Reply

Your email address will not be published. Required fields are marked *