Notices
Computer & Technology Related Post here for help and discussion of computing and related technology. Internet, TVs, phones, consoles, computers, tablets and any other gadgets.

Attention web development gurus???

Thread Tools
 
Search this Thread
 
Old Aug 16, 2011 | 09:28 PM
  #1  
dazdavies's Avatar
dazdavies
Thread Starter
Scooby Regular
25 Year Member
Liked
Loved
iTrader: (22)
 
Joined: Oct 2000
Posts: 7,066
Likes: 85
From: N/A
Default Attention web development gurus???

Complete long shot but I'm struggling with something at work that is really beginning to p*ss me off.

I'm fairly proficient at web / database development but I'm trying to do something that I've never done before.

Basically I'm writing a web app for an Intranet that I'm developing where an element of it will allow a user to upload files for storage into a field on an SQL database table.

Try as I might I can't get it to happen.
The database is all set up and the closest i've got is every time a completed form is submitted a new record in the database is created but every field in that record is null.

I'm using IIS7, SQL Server 2005 and asp.vbscript via Dreamweaver.

Can anyone give me any pointers?

Cheers

Daz

Ps I know its random for a car forum but i know many of you work it IT so I thought it was worth a shot.
Reply
Old Aug 16, 2011 | 09:37 PM
  #2  
bioforger's Avatar
bioforger
Scooby Regular
iTrader: (1)
 
Joined: Jan 2002
Posts: 16,995
Likes: 5
From: Pig Hill, Wiltsh1te
Default

Isn't is as simple as the data you are trying to parse into the db is too long for the column(s) you have setup, hence creating nulls?
Reply
Old Aug 17, 2011 | 10:35 PM
  #3  
dazdavies's Avatar
dazdavies
Thread Starter
Scooby Regular
25 Year Member
Liked
Loved
iTrader: (22)
 
Joined: Oct 2000
Posts: 7,066
Likes: 85
From: N/A
Default

Couldnt reply last night as SN was down.

If only it was that simple.

The field on the SQL database is set to image type, I've also tried varbinary(max).

I've had varying degrees of success today after I built a dedicated 2k3 server to do the job. I know my way around iis 6 alot more than I do with iis7 and all the .net rubbish.

I've managed to get the correct data to the sql database (including the file itself written ino the database). As well as writing the binary file data to the database it also stores a copy of the file in an uploads folder. So that will be fairly handy for some reliability.


Now all I have to do is list the records in the database and then give the user the ability to click on the record and view the file.

Getting there slowly
Reply
Old Aug 18, 2011 | 01:22 AM
  #4  
HHxx's Avatar
HHxx
Scooby Regular
 
Joined: Nov 2001
Posts: 2,576
Likes: 0
Default

Blob's

I remember having a go at this a long time ago. 9 years I think! HR used it to upload job specs to the intranet. The intranet sql data was then replicated to the internet facing servers to appear/be searchable on the website between specified dates.

I think we stored, apart from the blob column, filename, mime format, creation date, modification date and the size of the file. Might be just as quick to calculate the size on the fly?

If I knew where my code was, I would have pasted here for reference..

I rarely code anymore, just the occasional script to make my life easier
Reply
Related Topics
Thread
Thread Starter
Forum
Replies
Last Post
Rbon91
ScoobyNet General
49
Nov 21, 2018 03:23 PM
Mattybr5@MB Developments
Full Cars Breaking For Spares
28
Dec 28, 2015 11:07 PM
Mattybr5@MB Developments
Full Cars Breaking For Spares
12
Nov 18, 2015 07:03 AM
InTurbo
Other Marques
20
Oct 8, 2015 08:59 PM
south_scoob
ScoobyNet General
22
Oct 3, 2015 01:05 PM




All times are GMT +1. The time now is 04:39 AM.