<div>Hi.. thanks for replying and thanks for the help</div> <div> </div> <div>I didn't realize that I mis type the code. The code what suppose to be ..</div> <div><STRONG> imageDataFile=StringIO(str(dataID.data))<BR> tfw = open(imageDataFile, "r")</STRONG></div> <div> </div> <div>so, what your saying is that I don't need to open the file that I wanted to read into and extract the data? But how can that be?</div> <div>I originally used tried by extracting info from a file on the computer and it works. But I couldn't do the same thing from the web.. I don't get that I did wrong or missing...</div> <div> </div> <div>How would you write the external method if you were to read a text file that you store in ZOPE database and extract the infromation line by line?<BR><BR><BR><B><I>Andreas Jung <lists@andreas-jung.com></I></B> wrote:</div> <BLOCKQUOTE class=replbq style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #1010ff 2px solid"><BR><BR>--On
25. Februar 2006 21:55:24 -0800 Allen Huang <SWAPP0@YAHOO.COM>wrote:<BR><BR><BR>> imageDataFile=StringIO(str(imageData.data))<BR>> tfw = open(imageDataFile, "r")<BR>><BR><BR>Please consult the StringIO documentation. There is no need to open()<BR>a StringIO instance...also your code makes little sense to me because<BR>str() already returns a string which is usually what you need and want.<BR>Why do you have the need to put the image data into a StringIO instance.<BR>And another point: you should always use cStringIO instead of StringIO<BR>(for performance reasons)...consult the Python Library reference for <BR>details.<BR>-aj<BR><BR></BLOCKQUOTE><BR><p>
        
                <hr size=1> Yahoo! Mail<br>
<a href="http://us.rd.yahoo.com/mail_us/taglines/pmall2/*http://photomail.mail.yahoo.com">Use Photomail</a> to share photos without annoying attachments.