This topic is locked

Edit as Database File

5/18/2005 1:39:33 PM
ASPRunnerPro General questions
Andy C author

I have a field named Job Log, where i would like to upload the log from a Job.(of course) However I have ran into a few minor dificulties. On the formatting page i have set the view as and edit as to "Database File" I am currently able to upload the file. I am unable to open the file once uploaded. I am also unsure about the view/edit format field, it ask's for a field that stores the database name, but i cannot choose any field from the database, i've tried hiding this field in asprunner and showing it with no avail. Please help! Thank you in advance for your help.

Sergey Kornilov admin 5/19/2005

Andy,
you need at least one text field to store filenames in your database.

Andy C author 5/20/2005

I was able to get that field, now how do I have asprunner open the file. It is a .htm file that should open in a web page but it does a cannot be displayed.

Andy C author 5/23/2005

Any word?? I have these files uploaded to this database and i cannot access them. I need to get to them ASAP. Appreaciate it!

Sergey Kornilov admin 5/24/2005

Andy,
choose Database file type on the Formatting tab if you use this field to hold binary files. Click on Change ...to choose a field to store filename field.

Andy C author 5/26/2005

I've done this. The file shows up as binary.
This is the situation.
I have a field called job_log(binary) and one called log_name(text)
I upload the file. The icon changes from the default image icon into the binary file icon. I click on the icon and i get "The page cannot be displayed"
If I right click and do a "save as" then i get an error "Internet explorer cannot download ...nd+[Tape+Number]=045'+++++++' from test.com.
I am completely stumped. Any help would be greatly appreaciated.

Sergey Kornilov admin 5/26/2005

Andy,
what file type do you upload?
Please zip and send to support@xlinesoft.com all files from ASPRunnerPro output folder with subfolders along with project file and your sample database. I'll find what's wrong running it on my test box.

Andy C author 5/26/2005

They are .htm documents.
I would rather not zip it and e-mail it because this is a table in a 850mb sql db. If all else fails I can export it to a mdb and send it to you that way but the file field will not work in mdb.

Andy C author 5/26/2005

Also as a side note, when I perform a search i get

Error number -2147217900
Error description [Microsoft][ODBC SQL Server Driver][SQL Server]Invalid operator for data type. Operator equals LIKE, type equals varchar.
I'm thinking this is because the JobLog field, which is set to database file is available for search, i cannot remove it from searchable fields because it is not there but it shows up on advanced search which leads me to belive it is trying to search a binary file and asp runner does not like this. Make sense? Heh BTW thanks for looking into all of this for me i appreaciate it.

Sergey Kornilov admin 5/30/2005

Hi,
in Microsoft SQL Server you need to use IMAGE field type to store files and VARCHAR field type to store filenames.
If it doesn't work send me SQL script that creates this database table.
To generate this script you need to open SQL Server Enterprise

Manager and right click on this table.
Choose "All tasks"->"Generate script ...". Click OK, save generated

script to file and send it to me.

Andy C author 6/21/2005

Any word on this??? Im still dead in the water.

Sergey Kornilov admin 6/22/2005

Andy,
how do you like me to help you if you didn't send me anything?

Andy C author 6/23/2005

I have sent you an e-mail but gotten no response, do you block attachements or something? I have all the stuff that you told me to send in a e-mail if you send me an e-mail @ acracchiolo@fluidmaster.com.

Sergey Kornilov admin 6/24/2005

We do not use any kind of SPAM filters. Just sent you an email from support@xlinesoft.com.

Andy C author 6/27/2005

Did you recieve the files?

K
kingrhino 11/15/2005

Andy or Admin,

What was the resolution to this problem.

I am having the exact same error when I try to upload a binary document.
I have my upload colun datatype set to image and the image name set to varchar.
Any help would be appreciated

K
kingrhino 11/15/2005

I should make things clear. My problem is slightly diffrent.
Heres the error I am getting "I was able to set in my sql table the field "upload file" to "image" datatype.

I then set the "upload file name" to "varchar" datatype
In the ASPrunner UI I set the field to be database file and selected the field for the file name values.
So When I add a new record the file uploads perfectly.

When I go to the list page I get a binary view of the uploaded file and i can click on it and open it.
However when I go to the view or edit pages I get the following error in the "upload file" column.

___

"

Microsoft OLE DB Provider for ODBC Drivers error '80040e21'
Multiple-step OLE DB operation generated errors. Check each OLE DB status value, if available. No work was done.
/vendor_mgt/ven_update/include/Company_aspfunctions.asp, line 1350 ""


Please help

Rhino

Sergey Kornilov admin 11/15/2005

Rhino,
please zip and send all generated files along with your database to support@xlinesoft.com for investigation.

Random 12/30/2005

I should make things clear. My problem is slightly diffrent.

Heres the error I am getting "I was able to set in my sql table the field "upload file" to "image" datatype.

I then set the "upload file name" to "varchar" datatype
In the ASPrunner UI I set the field to be database file and selected the field for the file name values.
So When I add a new record the file uploads perfectly.

When I go to the list page I get a binary view of the uploaded file and i can click on it and open it.
However when I go to the view or edit pages I get the following error in the "upload file" column.

___

"

Microsoft OLE DB Provider for ODBC Drivers error '80040e21'
Multiple-step OLE DB operation generated errors. Check each OLE DB status value, if available. No work was done.
/vendor_mgt/ven_update/include/Company_aspfunctions.asp, line 1350 ""


Please help

Rhino


Have you got a resolution for this problem?

Sergey Kornilov admin 12/31/2005

Usually this error happens due to choosing incorrect fields to store files or filenames. If you see this kind of error you need to send your files to support@xlinesoft.com for investigation.