• Home
  • Contact
Blue Orange Green Pink Purple

Asynchronous Image Uploading and Database Storage

Posted in Software, Web. on Tuesday, October 17th, 2006 by Dave
Oct 17

Here’s a code snippet that I mashed up recently. I started with Asynchronous image file upload without AJAX and worked in code from one or two tutorials. The result is an asynchronous image uploading script, using an iFrame, that resizes the images and stores both the original and the thumbnail in a database.

Get it here:


The table that needs to exist in your database:

CREATE TABLE `image_upload` (
`id` int(11) NOT NULL auto_increment,
`name` varchar(30) NOT NULL,
`type` varchar(30) NOT NULL,
`size` int(11) NOT NULL,
`content` mediumblob NOT NULL,
`thumb` mediumblob,
PRIMARY KEY (`id`)
)

Leave a Reply

區段40

    • No tweets available at the moment.
    • More updates...
  • Categories
    • Advertising
    • Apple
    • Blogging
    • clothing
    • Design
    • Gaming
    • Japan
    • Language
    • Linux
    • Sector40
    • Software
    • Taiwan
    • Tech
    • Uncategorized
    • Visa
    • Web
  • Recent Articles
    • BBC experiment to increase understanding of Globalisation
    • Chunghwa Telecom prepare for Taiwan iPhone release
    • iPhone 2.2 Firmware plus Pwnage Tool Update
    • Megaupload下載問題
    • Configuring Pure-FTP for Passive FTP
    • 在一分鐘內看Mac World的全部
  • Archives
    • December 2008
    • November 2008
    • February 2008
    • January 2008
    • November 2007
    • October 2007
    • September 2007
    • August 2007
    • July 2007
    • June 2007
    • May 2007
    • April 2007
    • December 2006
    • November 2006
    • October 2006
    • September 2006
  • Search






  • Home
  • Contact

© Copyright 區段40. All rights reserved.
Designed by FTL Wordpress Themes brought to you by Smashing Magazine

Back to Top