title: Python Script to convert Image into Byte array
body: <p>I am writing a Python script where I want to do bulk photo upload.
  I want to read an Image and convert it into a byte array. Any suggestions would be greatly appreciated.</p>
  
  <pre><code>#!/usr/bin/python
  import xmlrpclib
  import SOAPpy, getpass, datetime
  import urllib, cStringIO
  from PIL import Image
  from urllib import urlopen 
  import os
  import io
  from array import array
  """ create a proxy object with methods that can be used to invoke
      corresponding RPC calls on the remote server """
  soapy = SOAPpy.WSDL.Proxy('localhost:8090/rpc/soap-axis/confluenceservice-v2?wsdl') 
  auth = soapy.login('admin', 'Cs$corp@123')
  </code></pre>