<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en-gb">
	<link rel="self" type="application/atom+xml" href="https://forum.eggheads.org/app.php/feed/topic/19515" />

	<title>egghelp/eggheads community</title>
	<subtitle>Discussion of eggdrop bots, shell accounts and tcl scripts.</subtitle>
	<link href="https://forum.eggheads.org/index.php" />
	<updated>2013-09-21T14:03:55-04:00</updated>

	<author><name><![CDATA[egghelp/eggheads community]]></name></author>
	<id>https://forum.eggheads.org/app.php/feed/topic/19515</id>

		<entry>
		<author><name><![CDATA[Fire-Fox]]></name></author>
		<updated>2013-09-21T14:03:55-04:00</updated>

		<published>2013-09-21T14:03:55-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=102048#p102048</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=102048#p102048"/>
		<title type="html"><![CDATA[store img with tcl]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=102048#p102048"><![CDATA[
Thanks i'll have a look at it, the db structure is in place. I just can figure out the code for it <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_sad.gif" width="15" height="15" alt=":(" title="Sad"><br><br>EDIT: Would i could use something like this to store the img on the server, and maybe in the insert query do it so it insert the patch to the img in the db<br><br><a href="http://forum.egghelp.org/viewtopic.php?p=99547#99547" class="postlink">http://forum.egghelp.org/viewtopic.php?p=99547#99547</a><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8230">Fire-Fox</a> — Sat Sep 21, 2013 2:03 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[nml375]]></name></author>
		<updated>2013-09-21T13:12:44-04:00</updated>

		<published>2013-09-21T13:12:44-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=102047#p102047</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=102047#p102047"/>
		<title type="html"><![CDATA[store img with tcl]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=102047#p102047"><![CDATA[
If I understand you correctly, what you need to do, is to use the http package to retrieve the image data from the posted URL.<br><br>You'd then use the mysqltcl lib to insert the image data into a SQL table of your choosing.<br><br><br>As for "requesting" the image, once again use mysqltcl to extract the data from the table, and provide it to the user in whatever fashion you've intended (which is not specified in your post, by the way).<br><br>You should be aware that tcl is not really an efficient data handler, and might consider using a temporary file as intermediate storage for large files. You'd probably want to look at the -channel option for ::http::geturl, and use the LOAD_FILE() function with your INSERT SQL-query in this case.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8052">nml375</a> — Sat Sep 21, 2013 1:12 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Fire-Fox]]></name></author>
		<updated>2013-09-21T11:50:23-04:00</updated>

		<published>2013-09-21T11:50:23-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=102045#p102045</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=102045#p102045"/>
		<title type="html"><![CDATA[store img with tcl]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=102045#p102045"><![CDATA[
Hey!<br><br>Im trying to store img in my database (mysql)<br><br>How do i do that <br><br>it should store it from a url from my channel. And users should be able to request the img with a cmd.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8230">Fire-Fox</a> — Sat Sep 21, 2013 11:50 am</p><hr />
]]></content>
	</entry>
	</feed>
