Go to Post Hurricane season would be torture, at least in snow you can lock the doors and know the robot is safe. - rtfgnow [more]
Home
Go Back   Chief Delphi > Competition > Rules/Strategy > Scouting
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
 
 
Thread Tools Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #2   Spotlight this post!  
Unread 02-03-2004, 09:17
Brandon Martus's Avatar Unsung FIRST Hero
Brandon Martus Brandon Martus is offline
busy.
AKA: B. Slash Kamen
no team
 
Join Date: May 2001
Rookie Year: 1998
Location: Nevada, TX USA
Posts: 5,271
Brandon Martus has a reputation beyond reputeBrandon Martus has a reputation beyond reputeBrandon Martus has a reputation beyond reputeBrandon Martus has a reputation beyond reputeBrandon Martus has a reputation beyond reputeBrandon Martus has a reputation beyond reputeBrandon Martus has a reputation beyond reputeBrandon Martus has a reputation beyond reputeBrandon Martus has a reputation beyond reputeBrandon Martus has a reputation beyond reputeBrandon Martus has a reputation beyond repute
Send a message via ICQ to Brandon Martus Send a message via AIM to Brandon Martus Send a message via Yahoo to Brandon Martus
Re: online scouting database + picture question

Quote:
Originally Posted by Robert Hafner
I'm using a MySQL database to run the scouting program, and I was wondering if it was possible to store pictured into the database. I know the blob type is for storing binary data, but how would I go about putting a picture in there, and then how would I have it display?
here's some snippets. nothing complete, but it'll get you on the right track, i think.

grab the file, first.
Code:
	  @ob_start();
  	  $output = @readfile("/path/to/file.jpg"); // could be url
  	  $theImage = @ob_get_contents();
  	  @ob_end_clean();
and then run this insert
Code:
"INSERT INTO table (id,column) VALUES ('','".addslashes($theImage)."')"'
to display later, assuming its a jpeg:
Code:
@header('Content-Type: image/jpeg');
 // echo out contents of that column you just updated
__________________
Brandon Martus
e-mail
 


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Scouting Database Robert Hafner General Forum 4 20-02-2004 23:37
Übergeeks scouting database, and the competitions Jeremy_Mc Scouting 10 09-03-2003 00:26
Looking for a scouting database.... archiver 2001 7 24-06-2002 00:50
Scouting Database archiver 1999 1 23-06-2002 22:28
Question about picture CaptainPlaid Electrical 10 22-02-2002 18:00


All times are GMT -5. The time now is 23:20.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi