Retrieving BLOB Fields From A Database?

I am currently working on a document management system for my company's Marketing department. They wish to be able to upload files to the server.

Rather than deal with the many permissions issues we have had in the past with saving and deleting these files to the server's file system, this time we are trying to use SQL server BLOB fields to store the files.

The premise is simple -- a user clicks on the link and the file is then shown in the browser. The documents are mostly word, Quark, and Adobe Illustrator documents. I was thinking the code would go something like this: Code:

View Replies


ADVERTISEMENT

I Need A Code For Uploading Files Into Oracle Database In Blob Fields Through ASP

I don't know how to upload word doc, images and other files into Oracle Blob fields with binary format.

I tried with the following code, normally it's inserting, suppose if i try to convery binary. Code:

View Replies View Related

Retrieving Database Fields Problem

I'm trying to retrieve information from a field in a database, which contains data, some of which are the same. ex:

let's say the table is called "Person_info" and there are 5 rows of info with a different person's info.

let's say i want to display the info in the fields called "City" but there are duplicates ex:

Toronto
Vancouver
Toronto
New York
Atlanta

I'd like it to display all the cities in there on a web page, but, I don't want it to display the same city twice:

so it'll display this:

Toronto
Vancouver
New York
Atlanta

I just can't get it to work? it keeps displaying duplicates.

View Replies View Related

Retrieving Values From Fields Collection

I'm trying to retrieve 2 values from a table (product stocknumber & description) that match a form result (product ID number) to send with the "form results email". Not quite sure how to do this. Code:

View Replies View Related

ADO Streams And Binary Data Held In A MySQL Database Blob Field

Has anyone else found a memory leak using ADO streams to access binary data held in a database. I have searched through this forum and have not come across anyone else, so maybe it is just me.

The scenario is as follows:
Windows 2000 SP3
MDAC 2.7 SP1
IIS5
MySQL 3.23
MyODBC 2.50

If I query the database and do a response.binarywrite everything works fine and no memory leak. eg. response.binarywrite myrecordset("blobfield")

If I read the very same BLOB field into a ADOstream I then get a memory leak in DLLHOST.EXE of how big that binary field was. ie If the picture is 140k in size DLLHOST.EXE increases its memory size by 140k.

This keeps on happening until DLLHOST.EXE is something like 250 MBytes in size at which point it stops working. Quick restart of the IIS Web service and I get all my memory back.

The command I am using to get the data into the ADOstream is picturestream.write myrecordset("blobfield")

I have also tried putting the binary data into a variable first before inserting it into the stream:
set x=myrecordset("blobfield")
picturestream.write x

The stream is closed and set to nothing at the end of processing. Everything is cleanly shut down. Through testing I know the memory leak occurs once the data has been written into the stream. The stream is correctly created as type binary.

The stream problem I am encountering does not seem to be limited to ASP, I tried it using Visual Basic to create a COM component to do the same job and still got a memory leak.

So the questions are:
1. Has anyone come across this before or fixed it?
2. Is there another way of getting binary data out of MySQL, something like the opposite of LoadFile?

I have wasted so much time on this problem but cannot find, having searched Microsoft's knowledge base and the rest of the web, any reference to the problem.

View Replies View Related

Retrieving Data Strings From Database

I am submitting data to a database field, and the data is being submitted in the following manner to a table in the database:

5,3,4,4,3,3,4,5,4,5,5

It's all comma delimeted. Now, what I would like to do is have an update page in which a user can update these values. I am trying to place the values in a repeated text box that corresponds with a repeated question.

The questions that I am displaying are in a repeated field and each question has a text box that will hold the value that corresponds to. I would like to be able to bring in each value into a repeated text box. Right now, each repeated text box contains the above information. (5,3,4,4,3,3,4,5,4,5,5). Is this possible?

View Replies View Related

Problem Retrieving Data From Database

I have a search set up on my site to compare between two <select> values and the value in the data base, but not sure if I have the sql statment correct, my search returns all rows from the table, I want specific row that is between one form select and another... ie. below

for this particular example I want to know if the database AD_PRICE field is between <select name=price> and <select name=price1> and if so, return the only those rows, currently all rows are being returned... Code:

View Replies View Related

Retrieving Infornation From An Access Database

I am trying to write a web application that can retrieve information from an access database, store it in a recordset, update it, then update the access database. However, when I try to update the recordset, I get an error (500).

I have checked my field names a million times (so I am pretty sure it isn't a spelling mistake or anything like that), but nothing is working. I included my code so you can take a look at it. Code:

View Replies View Related

Retrieving Data From Access Database

does any one just help me with the an example of retrieving data from access data base?

View Replies View Related

Retrieving Limited Words From Database

Just wondering. I am developing a blog. I would like to display the message post on the blog to be limited to, say, 100 words rather than the whole message itself as this will increase the page length.

I would like to know if there is a method to count the words from the record in database and display only 100 hundred words from the actual message..

View Replies View Related

IIS Running - Error Retrieving Database

I have sucessfully installed IIS 5.1 on XP Pro, and have validated a couple of test .asp pages.

When I try to connect to Access through Front Page, i get the following error:

The Database Results component on this page is unable to display database content. The page must have a filename ending in '.asp', and the web must be hosted on a server that supports Active Server Pages.

View Replies View Related

Apostrophe Error While Retrieving The Record From The Database

I am using a Replace function to replace single quotes with double when
submitting a text field in the database i.e. Replace (q, "'", "' ' ")
which works fine. When I retrieve the field from the database which has
apostrophe I am getting 'Object expected' error message. Is there a
way to fix this?

View Replies View Related

Retrieving Array From Single Column In Database

I have about 26 checkboxes that place all of my contacts into categories so in my database for contacts i have a field called categories that contains all of the categeories that each contact belongs to seperated by a ",". 1,5,17 etc.

I need help getting these values out of the database so that when I user select category 17 they get all of the contacts that containg the 17 in their respective categories field.

View Replies View Related

Retrieving Data From Database - Query String?

I have this page with photo thumbnails that are clickable. Each photo has corresponding info saved on a database. When the thumbnail is click, im trying to show the data in an asp page called info.asp.

sample:
Photo #1 when clicked goes to: info.asp?no=1
Photo #2 when clicked goes to: info.asp?no=2
so on so forth..

the database fields are:
no
picname
date
details

I only know how to display ALL info from a database.

But i cant figure out how to display SPECIFIC info triggered by a query string. Example. Photo #1 is clicked. I only want the data that corresponds to Photo 1 to be displayed. How can i do this?

View Replies View Related

Retrieving Foldername And Filename Place Into Database

I want to seach though the drives i.e c or d drives and find for the folders and subfolders and even the files and by that order only it should be inserted into the database.I am using MSACCESS database.

View Replies View Related

Retrieving Information From Database Using Multiple Search Criteria

I am trying to search for clients contained within a database using multiple search criteria that the user is able to select using a front end form.

The user is able to select there criteria by selecting one or more check boxes and the results are thus retrieved based on what the user has selected. The search works fine until you try and select multiple client types Code:

View Replies View Related

All Database Fields Search

I am looking for an ASP script that let me to serach all database contents with only one textfield in search page. eg: I have a database with five columns for lessons: Mat, physics, geography, history and sport. Each field have numbers 1 thr 5. I want to search only those students have number eg:3. with entering the number in textfield in serach page. I have no problem in result page.

View Replies View Related

Relational Database Fields

Is their a way to check with asp-code if a database field is relational with another field (from another table)?
For example:
If fieldname = relational Then...
End If

View Replies View Related

Empty Fields In Database

I'm trying to set up a quick if/then/else statement for when the database field returns no results. I'm not getting an error but when the field is EMPTY it still executes the ELSE statement.

<%
If rsOffice("FloorPlan") = Empty Then
Response.Write ("Not Available")
Else
Response.Write ("<a href=" _
& rsOffice("FloorPlan") _
& ">View</a>")
End If
%>

View Replies View Related

Calculating Database Fields

At the moment in time I have a product database being displayed. I could do with including another column to the database which allows me to enter a specific quantity for that product line. All the quantitys fields need to be calculated to their specific product cost value.

Finally all the sub totals need to be calculated together to give a grand total, which will be displayed on another page.

View Replies View Related

Comparing Database Fields

how to compare one Database field against another which both have a date and time in them (DateTime format) using VB in WebMatrix. or just comparing Database fields of DateTime aginst each other in VB.

View Replies View Related

Populating Form Fields From A Database

i have a form with fields that contain data from a db. the fields can then be edited, and on the click of the "submit" button, the updated information is returned to the database, replacing the old. a bonus would be arrow buttons allowing navigation from one record to the next, with the information populating the form each time. i'm having a hard time with this.

View Replies View Related

Adding Database Fields And Displaying Them

This code has worked in the past on this same page, and for some reason it doesn't want to calculate the numbers anymore. Anyone see anything that is out of whack?

Basically I am taking the input numbers for each field and adding them up on one column, then taking the totals of all of those columns and adding it up to display as an overall total. Code:

View Replies View Related

Database Fields In A Input Form

How can I specify formatting restrictions for special fields like Postal Code
(format X1X 2C2) or date input field MM/DD/YYYY? I have Acces DB with these specs, but when I used FP2002 Database Interface Wizard, it ignores these. Also I am unable to "edit" any of the records utilizing pages generated by this wizard.

There is an error that it will not accept empty fields. I have no problem adding data (even if some fields are empty) or deleting records.

View Replies View Related

Creating Database Fields Dynamically

I am using a repeated field to bring in to my page repeated records, and I have been able to retrieve values that are entered into text boxes that are associated with these repeated fields. I would like to post these values into a database, but I'm not sure how to set up my table as I know that each employee's values as well as number of fields will be different.

I thought about setting up two tables. One that houses the dynamic question and the other to house the answers, but I'm not sure if that will work. I could really use help as to the syntax to write a loop statement that will insert my returned variables and create the field names dynamically into my database table. I believe this is what i need to do.

View Replies View Related

Sum Form Fields Add Total To Database!

I have a an issue that I would love to solve. The below code adds 111111111111111111 to the field when I want it to sum the amount which in this case totals 18 and then add that total (18) to the field! Code:

View Replies View Related

Show Only If Data In Individual Database Fields

I have announcements down the left hand column of a site and want to display contact info if it is available - if it is entered into the database. So I only want to display a space plus the data if there is data in the field. Code:

View Replies View Related

BLOB

Just wondering if any one can tell me why on my machine in Inetpub, when I
want to display data from a blob column, I get data that is like =
"4�D�6�5�7�3�7�3�6", using Response.BinaryWrite. My ado version is 2.8, does
it have some thing to do with missing some thing?

View Replies View Related

How To Get A Blob In & Out

I figured out yesterday how to get a blob in, then found an easier way (basically put them all in access then import them into sql).

My problem is getting them out. I dont care if its ASP, PHP or what, but I dont know exactly how I would go about getting it.

I have 2 fields in the database, one is the blob data, and the other is just a name, so I'll be selecting on that, and then displaying its corresponding blob data (tif files).

How would I go about doing this? I've never done blobs, I've normally just done an echo $variable type of thing for string and integers and such.

View Replies View Related

BLOB Objects

I have stored a .gif and jpeg file in the database as the BLOB object.
Now I am trying to create a report which displays that gif file along with another information.
Is there a way I can display the BLOB objects on the page without having to use any crystal report tool or anything ?

View Replies View Related

Blob Issues

I need some help with ADO types. I use an stored procedure to insert records in a table. One of columns needed is a Blob type (subtype Text). In adition I use ADODB.command configured as I show:
...
oProcedure.Parameters.Append oProcedure.CreateParameter("Description", adLongVarChar, adParamInput, 1234567, description)
...
But it doesn't work well. After call, the table shows something like binary data.
I'd tried to use other ADO types like adVarChar, adVarWChar, adLongVarBinary,... with same result or type errors.

View Replies View Related

Use With Blob In Oracle

I'm searching some code samples that using blob data type with asp.

View Replies View Related

Images From Oracle(blob) To ASP

I am feeling it tough to retreive a image(blob) from oracle to asp.

I am getting an unspecified error while running the select query.

Could anyone please let me know how to retreive a blob from oracle 9i to ASP.

View Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved