Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!xlned.com!feeder5.xlned.com!newsfeed.xs4all.nl!newsfeed4.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.000 X-Spam-Evidence: '*H*': 1.00; '*S*': 0.00; 'from:addr:yahoo.co.uk': 0.04; 'insert': 0.05; 'applicable,': 0.07; 'json': 0.07; 'string': 0.09; 'happen,': 0.09; 'lawrence': 0.09; 'received:80.91': 0.09; 'received:80.91.229': 0.09; 'received:gmane.org': 0.09; 'received:list': 0.09; 'snippet': 0.09; 'subject:into': 0.09; 'subject:string': 0.09; 'python': 0.11; '12:17,': 0.16; 'received:80.91.229.3': 0.16; 'received:plane.gmane.org': 0.16; 'subject:Converting': 0.16; 'subject:image': 0.16; 'why,': 0.16; 'wrote:': 0.18; 'version.': 0.19; 'code,': 0.22; 'header:User- Agent:1': 0.23; 'file.': 0.24; 'pass': 0.26; 'post': 0.26; 'header:X-Complaints-To:1': 0.27; 'header:In-Reply-To:1': 0.27; 'code': 0.31; 'run': 0.32; 'subject:the': 0.34; 'expected': 0.38; 'to:addr:python-list': 0.38; 'to:addr:python.org': 0.39; 'received:org': 0.40; 'how': 0.40; 'full': 0.61; 'email addr:gmail.com': 0.63; 'fails,': 0.84 X-Injected-Via-Gmane: http://gmane.org/ To: python-list@python.org From: Mark Lawrence Subject: Re: Converting image into string and obtain the string in json Date: Tue, 01 Oct 2013 14:15:43 +0100 References: Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Gmane-NNTP-Posting-Host: 78.147.182.255 User-Agent: Mozilla/5.0 (Windows NT 6.1; rv:24.0) Gecko/20100101 Thunderbird/24.0 In-Reply-To: X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 14 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1380633367 news.xs4all.nl 15881 [2001:888:2000:d::a6]:38596 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:55190 On 01/10/2013 12:17, arunraja.jaga@gmail.com wrote: > How to insert an image in mysql and retrieve the image to pass it as a string to json file. > You write some code, try to run it and if it fails and you don't understand why, post a code snippet that fails, what you expected to happen, what actually happened and the full traceback if applicable, quoting your OS and Python version. -- Cheers. Mark Lawrence