Saving file to database
Hello i am designing a website for my company so my clients can easily view project reports and progress. i want to create a database that will allow me to upload updated drawing files and provide a download link and description so my clients can download them. i have worked with databases but am not really a prof at it. i dont know how to set the attributes that will allow a file to be uploaded to path and provide a link to download it. any help or direction offered would be greately appreciated.
Can it be done in Dreamweaver? Yes.
Will Dreamweaver do all the coding for you? No.
What you want to do is not particularly difficult, but it does involve knowledge of PHP and MySQL. Some of the Dreamweaver extensions sold by WebAssist might be able to automate the process for you, but I have never used them, so can't make any particular recommendation.
Similar Messages
-
Error while saving file to database using messageFileUpload
Hi,
In my OA Page I have messageFileUpload to save the file to a database. I have a custom stored procedure that I call in the AM that takes the file as BLOB and insert it into the table. My problem is for smaller files it works fine but as soon as I try to save a larger file i.e. over 0.5 MB I am getting the following errors. Sometime I get size error sometimes I get unreasonable conversion requested error. How can I solve this so it takes any size of file and save it.
Application: FND, Message Name: FND_GENERIC_MESSAGE. Tokens: MESSAGE = java.sql.SQLException: Data size bigger than max size for this type: 2251264;
Application: FND, Message Name: FND_GENERIC_MESSAGE. Tokens: MESSAGE = java.sql.SQLException: ORA-01460: unimplemented or unreasonable conversion requested ; Here is what I have in my Controller code snippet
BlobDomain uploadedByteStream = (BlobDomain)fileUploadData.selectValue(null, fileName);
Serializable[] parametersFile = { fileName, contentType, fileSize, uploadedByteStream };
Class[] paramTypesFile = { String.class, String.class, Long.class, BlobDomain.class };
am.invokeMethod("saveFile", parametersFile, paramTypesFile);Here is the AM method that also invokes the Stored Procedure and pass the file as BLOB to save
conn = (OracleConnection)dbTransaction.getJdbcConnection();
cStmt = (OracleCallableStatement)conn.prepareCall(
"{CALL FILE_PKG.saveFile(:1, :2, :3, :4)}");
cStmt.setString(1, fileName);
cStmt.setString(2, fileContentType);
cStmt.setNUMBER(3, new NUMBER(fileSize.intValue()));
cStmt.setBinaryStream(4,uploadedFile.getBinaryStream(),fileSize.intValue());Any help is appreciated.
ThanksI was able to resolve it and used the below code just in case if anyone else trying to save the BLOB
byte[] barray = uploadedFile.getBytes(0,fileSize.intValue());
oracle.sql.BLOB data = oracle.sql.BLOB.createTemporary(conn, true, BLOB.DURATION_CALL);
data.putBytes(1,barray);
cStmt.setBlob(4,tempBlob); -
Saving files(txt,pdf etc.) in database received from client
Code:
<!--- Sets the file source --->
<cfset rfsfile = "#form.accepted_attachedfile1#">
<cfset rfsid = "#form.rfsid#">
<!--- Reads The Files Binary Data --->
<cffile action="readBinary" file="#rfsfile#"
variable="MyVariable">
<cfset MyBLOB = toBase64(#MyVariable#)>
<!--- Save the file in database --->
<cfquery datasource="manpower" username="devegov"
password="dev@egov" name="insertfile">
insert into TBL_RFS_ATTACHEDFILES (RFS_BLOB)
values (<cfqueryparam value="#MyBLOB#"
cfsqltype="cf_sql_blob">)
</cfquery>
<cfoutput query="insertfile">
successfull!!!!!!!!!!!!!!!!!!
</cfoutput>
<cflocation url="/rfs_backend/RFS_detail.cfm">
The table is :
create table TBL_RFS_ATTACHEDFILES (
RFS_BLOBID INT generated by default as identity (increment by
1,start with 1) not null,
RFS_BLOBNAME VARCHAR (50),
RFS_BLOB BLOB (500000),
primary key (RFS_BLOBID));
I am getting the following error in this code.........
Error casting an object of type to an incompatible type.
This usually indicates a programming error in Java, although it
could also mean you have tried to use a foreign object in a
different way than it was designed.
The error occurred in
C:\CFusionMX7\wwwroot\rfs_backend\RFS_SaveRFSDetails.cfm: line 22
20 : <cfquery datasource="manpower" username="devegov"
password="dev@egov" name="insertfile">
21 : insert into TBL_RFS_ATTACHEDFILES (RFS_BLOB)
22 : values (<cfqueryparam value="#MyBLOB#"
cfsqltype="cf_sql_blob">)
23 : </cfquery>
24 : <cfoutput query="insertfile">
Please try the following:
* Check the ColdFusion documentation to verify that you are
using the correct syntax.
* Search the Knowledge Base to find a solution to your
problem.
Browser Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US;
rv:1.8.1) Gecko/20061010 Firefox/2.0
Remote Address 127.0.0.1
Referrer
http://localhost:8500/rfs_backend/RFS_detail.cfm?rfsid=3008
Date/Time 07-Dec-06 03:48 PM
Stack Trace
at
cfRFS_SaveRFSDetails2ecfm555042871.runPage(C:\CFusionMX7\wwwroot\rfs_backend\RFS_SaveRFSD etails.cfm:22)
java.lang.ClassCastException
at
coldfusion.sql.InParameter.setStatement(InParameter.java:49)There is an exclusive forum for forms - {forum:id=82}
And please dont use the words like Urgent, ASAP in these forums.. That will kill the chance of getting replies to you..
Edited by: jeneesh on May 16, 2013 2:45 PM -
can any one help how can i save pdf file in database???
hi
try the following link.
Re: Store PDF files in database.
sarah -
How to download a file from database
Hi,
My flex application contains a form that uploads a file into the server. This file is however saved in the database, and not on the disk. Most of the tutorials in the database explains how to download a file by passing the file's url to the "download" function of the fileReference Object. That dsnt work for me as my file is saved in the database.
How do I download this file from the server ?
For example, in php, we would do smthing like this :
$content = $file_to_download['content'];
$size = $file_to_download['content_size'];
$type = $file_to_download['content_type'];
$name = $file_to_download['filename'];
header("Content-type:$type");
header("Content-length:$size");
header("Content-Disposition:attachment;filename=$name");
header("Content-Description:PHP Generated Data");
echo $content;
When executing this file, it opens up the "download file" dialog box. How do i get the same effect in flex 4 ?You need the bytes use FileReference.download() and after download you can save
it on disk with FileReference.save(); You also need FP 10 at least I think. Use
the docs they are less error pron than mi memory :).
C -
Hi All,
We are being unable to save a form into the database.
This form is all along been saved in the database and it is one
of the common forms which we use throughout our applications and it basically contains common blocks , procedures which are used or referenced by all file system forms across the application.
The problem has started recently after we did some changes in it and then again try to store it back into the database. Basically we store another form (900KB) in DB along with this one (2200KB),
I have tested, with the other form already in the database we
are not being able to save a form of this big size in the
database, whereas it allows us to save the form only if its size
is less than 1600KB. That means it is a form size related issue.
If anybody has faced similar problem and know if there is any
change or tuning required in any of the database schema objects
then please help me. Its a mission critical problem for our
organisation.
ORACLE PEOPLE PLEASE HELP US !
We are using forms 4.5 with Oracle 8.0.6 on MS WindowsNT 4.0.
Thanks in advance.Yes Grant, we get error message :
The Windows Error (F50des32.exe - Application error) :The
instruction at "0x5d9e9280" referenced memory at "0x0001567a".
The memory could not be "read".
Basically we have two forms in the database, say form1 and form2. Form2 itself is referencing objects in form1, and both these forms are referenced by other filesystem forms. We are unable to save the form2 but not the form1.
Each time we try to save the Form2 in the database we are facing the problem. Form1.fmb is of the size 828KB, whereas Form2.fmb is 2200KB. Is the problem related to the size of the form ? I believe these forms are stored in the SYSTEM tablespace, I checked the system tablespace, its used 117MB and is 22MB free, initial extent is 122880 and next is 122880 with max
extent 300.
This problem is having in all our test databases and is not
really related to any particular machine (statistics given is of
one of our test database).This problem may have occured before
but I am not sure as we are in need to change in the database
forms first time after I have taken over responsibility.Please
look into the problem with high priority as we are in need to
update live applications ASAP. -
Just upgraded to Lion, but the Save & Save As options are not in Numbers now. How do I Save or Save as now?
Speak for yourself, coocoo.
Here's a simple example of why this is a "biggy".
I open and edit a file named database.xml file with TextEdit. Previously, all I had to do was hit Cmd-S or File>Save and I was done. Now, my save options are:
Close
Save a Version…
Duplicate
Export as PDF…
Revert to Saved
Save a Version creates a new file in the original file location named database.txt -- not what I need to do.
Duplicate creates a new copy and now gives me the new option of "Save…" which still wants to save a text file and will force me to go through a warning dialogue to save over the original document - which I just wanted to save in the first place.
To add insult to injury, if I opened the file by browsing to it, the finder is pointed to the right location. But if I didn't, I have to hunt through my folders and find the location where I want to save the file, change the extension from .txt to .xml, and go through the warning dialogue stating that I'm about to save over a file of the same name.
Again, compare this to the previous work flow:
1. Open the xml document
2. Edit it
3. Click save.
That's it. No changing the friggin' extension, no new versions or duplication or hunting through folders. No warning dialogues.
This really is a terrible, terrible, terrible, terrible, terrible, terrible, terrible, terrible, terrible (I really can't say it enough), TERRIBLE implementation. SOOOO ANNOYING! Please give us back Save and Save As...
We went from elegant to byzantine. This is the kind of crap we'd expect from Microsoft, not Apple.
If you want Save and Save As... back, let Apple know by clicking "Numbers" in the menu and then "Provide Numbers Feedback..." -
Error in file filename : Database Connector Error
Dears,
I face a problem from several days with one of my deployed reports to CMS.
The problem is the same reports run for some users and other users keeps to give them this error:
Error in file <filename>: Database Connector Error
Note: there is no filteration or any condition on users name and data resulted from this report is one for all users.
I tried everything, even i remove all objects from the report and keep only page headers it works.
But, if i readded any field from my DB object in crystal report the error appears again.
Please help, Thanks in advance.Hello,
You are using the original release of Cr XI R2. This has likely been fixed after applying all Service Packs and Fix Packs.
You should update the BOE Servers also so before doing so please check with the BOE Administrator.
To get the BOE patches you have to log into Service Market Place. To get CR patches make sure you have your keycode saved and available.
Uninstall CR using the Add/Remove Programs in Control Panel and then use the Full version of CR XI R2 Service Pack 4 and you can then apply SP 6, if it requires SP 5 first please do so:
https://smpdl.sap-ag.de/~sapidp/012002523100011802732008E/crxir2_sp4_full_build.exe
https://smpdl.sap-ag.de/~sapidp/012002523100013876392008E/crxir2win_sp5.exe
https://smpdl.sap-ag.de/~sapidp/012002523100015859952009E/crxir2win_sp6.exe
We do recommend that BOE and CR be on the same patch level.
Thank you
Don -
Interactive report - Save as html, possible to save file in database?
Hi
I am in a situation where I want the output of a interactive report in HTML format, but I do not wan't to download the files to my computer. I want to automate my process to display the report and save the file to database and to be attached to a email from Apex in a later stage.
Is this possible at all? tried different aproaches with saving data to clob and converting to blob, but it all look horrible for the end user.
Sincerely
JohnnyCheck if the subscription feature or download -> email available in apex 4.0 serves your purpose.
-
How is the 'import-packages' information saved in the database, and how long?
Hello,
I am developping a ECM Connector for Adobe LiveCycle ES, which is a customized component.
1 - Who should I contact to have some specific support ?
There is no detailed information yet on this on the adobe site (http://livedocs.adobe.com/livecycle/8.2/programLC/programmer/help/wwhelp/wwhimpl/js/html/w whelp.htm?href=000931.html&accessible=true) .
If you think that I should address my problem to another department of Adobe, please tell me which department?
I give you another description of my problem. In fact, I have been investigating on it.
2 - If I put this in my component.xml file, in step 1:
<component-id>com.rsd.adobe.livecycle.RSDFoldersConnector</component-id>
<version>1.0</version>
<import-packages><package version="1.0">com.rsd.simpleApiFolders</package> </import-packages>
If I change the version to 1.1 and remove the 'import-packages' (in step 2) , will the new component need the com.rsd.simpleApiFolders package. It seems that is still needs it.
3 - How is the 'import-packages' information saved in the database, and how long?
In fact, on thursday, I used 'import-packages' to make a test. And since them, I can not deploy any of my components.
LiveCycle throws a ClassNotFoundException.
ALC-DSC-000-000: com.adobe.idp.dsc.DSCRuntimeException: Internal error.
[java] at com.adobe.idp.dsc.registry.component.impl.ComponentRegistryImpl$6.doInTransaction(Compone ntRegistryImpl.java:338)
... Caused by: java.lang.ClassNotFoundException: http-0.0.0.0-8080-1Class name com.rsd.simpleApiFolders.Context from package com.rsd.simpleApiFolders not found.
[java] at com.adobe.idp.dsc.DSContainerSearchPolicy.searchClassUsingParentFirst(DSContainerSearchPo licy.java:234)
Thank you in advance
Regards.1 - Who should I contact to have some specific support ?
That would depend on your Adobe support contract and if your organization has a TAM assigned. You should check with your organization's Adobe contact and see what support options your organization has purchased.
Having said that, this forum has a few people that may be able to help (but the forum does not have a SLA associated with it)
2 - If I put this in my component.xml file, in step 1:
<component-id>com.rsd.adobe.livecycle.RSDFoldersConnector</component-id>
<version>1.0</version>
<import-packages><package version="1.0">com.rsd.simpleApiFolders</package> </import-packages>
If I change the version to 1.1 and remove the 'import-packages' (in step 2) , will the new component need the com.rsd.simpleApiFolders package. It seems that is still needs it.If your component class needs the simpleApiFolders class then yes, you still need it. Think of import-packages like a class-path statement (but with packages and not jars). Its not physically moving the package into your application, but allowing you to access it from another container.
3 - How is the 'import-packages' information saved in the database, and how long?
As far as I know they are not imported into the database. As I stated above, I believe that the import-packages just allows you to point to classes that are in the app server's classpath, but are not physically in you component jar file. As long as that class is in the app server class-path (or in the Adobe EAR file) then you should be able to access it. Is the jar file containing the simpleApiFolders class in the app server's lib directory? -
Can Discoverer Reports Saved on the Database be Copied Across Instances
We are using Discoverer 4i Plus Release - 4.1.48.08.00.
When workbooks are saved to the database, is there a way of copying them across to another instance (rather than having to re-create them)?
Thank you,
ThalitaYes. From the file menu, select Export. This starts a wizard which will export the entire EUL, BAs, or individual objects. If you just want to move workbooks, choose Individual Objects, then Workbooks from the drop down.
To import, fire up admin, connecting to the other database, select Import from tools menu, and the wizard will walk you through.
A word of caution - if you just export workbooks, they may import without errors into another schema. If the BAs, folder, or items are different between the export schema and the import schema, you will get errors when you try to open the workbooks (you may get errors when you try to import them, too). -
Is Content stored in the Rich Text Editor saved to the Database?
Is Content stored in the Rich Text Editor saved to the Database? We are planning a migration from our Dev environment to our QA/Staging environment and would like to migrate our existing content. We were told that content stored in the Rich Text Editor is stored somewhere in the Plumtree database. Is this true? If so, where in the DB (table/field) is it stored?
Some of the content from Publisher is stored in the file system.
Look under: plumtree\ptcs\publishedcontent
there you'll find your preview and published content. -
Cropped in Photoshop but saved file can't be seen in iPhoto browser??
iPhoto Preferences > General > Edit photo: > in Adobe Photoshop CS4
When I open an image in iPhoto, and right click to open in external editor, then crop the photo and Save As, the cropped image does not show up when I browse iPhoto. When I command-click the title of the PS file, however, it shows me that the cropped file actually exists inside the exact iPhoto folder where the original picture is.
I am having trouble understanding the basic idea of how iPhoto's library works and how PS CS4 interacts when you save an image.
I want to keep using iPhoto as my one and only library, but this kind of behavior is crazy making. Can someone shed some light, or point me towards the right thread?
Thanks!Using Photoshop (or Photoshop Elements) as Your Editor of Choice in iPhoto.
1 - select Photoshop as your editor of choice in iPhoto's General Preference Section's under the "Edit photo:" menu.
2 - double click on the thumbnail in iPhoto to open it in Photoshop. When you're finished editing click on the Save button. If you immediately get the JPEG Options window make your selection (Baseline standard seems to be the most compatible jpeg format) and click on the OK button. Your done.
3 - however, if you get the navigation window that indicates that PS wants to save it as a PS formatted file. You'll need to either select JPEG from the menu and save (top image) or click on the desktop in the Navigation window (bottom image) and save it to the desktop for importing as a new photo.
This method will let iPhoto know that the photo has been editied and will update the thumbnail file to reflect the edit..
NOTE: With Photoshop Elements 6 the Saving File preferences should be configured: "On First Save: Save Over Current File". Also I suggest the Maximize PSD File Compatabilty be set to Always.
If you want to use both iPhoto's editing mode and PS without having to go back and forth to the Preference pane, once you've selected PS as your editor of choice, reset the Preferences back to "Open in main window". That will let you either edit in iPhoto (double click on the thumbnail) or in PS (Control-click on the thumbnail and seledt "Edit in external editor" in the Contextual menu). This way you get the best of both worlds
2 - double click on the thumbnail in iPhoto to open it in Photoshop. When you're finished editing click on the Save button. If you immediately get the JPEG Options window make your selection (Baseline standard seems to be the most compatible jpeg format) and click on the OK button. Your done.
3 - however, if you get the navigation window that indicates that PS wants to save it as a PS formatted file. You'll need to either select JPEG from the menu and save (top image) or click on the desktop in the Navigation window (bottom image) and save it to the desktop for importing as a new photo.
This method will let iPhoto know that the photo has been editied and will update the thumbnail file to reflect the edit..
TIP: For insurance against the iPhoto database corruption that many users have experienced I recommend making a backup copy of the Library6.iPhoto (iPhoto.Library for iPhoto 5 and earlier versions) database file and keep it current. If problems crop up where iPhoto suddenly can't see any photos or thinks there are no photos in the library, replacing the working Library6.iPhoto file with the backup will often get the library back. By keeping it current I mean backup after each import and/or any serious editing or work on books, slideshows, calendars, cards, etc. That insures that if a problem pops up and you do need to replace the database file, you'll retain all those efforts. It doesn't take long to make the backup and it's good insurance.
I've created an Automator workflow application (requires Tiger or later), iPhoto dB File Backup, that will copy the selected Library6.iPhoto file from your iPhoto Library folder to the Pictures folder, replacing any previous version of it. There are versions that are compatible with iPhoto 5, 6, 7 and 8 libraries and Tiger and Leopard. Just put the application in the Dock and click on it whenever you want to backup the dB file. iPhoto does not have to be closed to run the application, just idle. You can download it at Toad's Cellar. Be sure to read the Read Me pdf file.
NOTE: The new rebuild option in iPhoto 09 (v. 8.0.2), Rebuild the iPhoto Library Database from automatic backup" makes this tip obsolete. -
Help needed in reading text file to database table
Hello experts,
i have to insert the values from the column of this text file and insert them in my database table.
I have done a few file to table insertions but i'm having some trouble with this one.
Any suggestions plz
thanks
liab_report 1.00 Page: 1
CDC:00537 / Mon Jun-21-2010 LIABILITY REPORT Mon Jun-21-2010 22:06:26
DRAW 1; SET 1; November 7, 2009
TOTAL PAID ON TOTAL EXPIRED ON TOTAL FRAC OUTSTANDING
WINNERS 06/21/10 PAID 06/21/10 EXPIRED ROUND
DIVISION AMOUNT AMOUNT AMOUNT AMOUNT AMOUNT AMOUNT AMOUNT
Div1 0.00 0.00 0.00 0.00 0.00 0.00 0.00
Div2 701040.00 0.00 660146.00 0.00 40894.00 0.00 0.00
Div3 1444128.00 0.00 1330056.00 0.00 114072.00 0.00 0.00
Div4 4711900.00 0.00 3889700.00 0.00 822200.00 0.00 0.00
6857068.00 0.00 5879902.00 0.00 977166.00 0.00 0.00
DRAW 2; SET 1; November 14, 2009
TOTAL PAID ON TOTAL EXPIRED ON TOTAL FRAC OUTSTANDING
WINNERS 06/21/10 PAID 06/21/10 EXPIRED ROUND
DIVISION AMOUNT AMOUNT AMOUNT AMOUNT AMOUNT AMOUNT AMOUNT
Div1 0.00 0.00 0.00 0.00 0.00 0.00 0.00
Div2 817817.00 0.00 817817.00 0.00 0.00 0.00 0.00
Div3 1687405.00 0.00 1611742.00 0.00 75663.00 0.00 0.00
Div4 3402100.00 0.00 3034200.00 0.00 367900.00 0.00 0.00
5907322.00 0.00 5463759.00 0.00 443563.00 0.00 0.00
DRAW 3; SET 1; November 21, 2009
TOTAL PAID ON TOTAL EXPIRED ON TOTAL FRAC OUTSTANDING
WINNERS 06/21/10 PAID 06/21/10 EXPIRED ROUND
DIVISION AMOUNT AMOUNT AMOUNT AMOUNT AMOUNT AMOUNT AMOUNT
Div1 0.00 0.00 0.00 0.00 0.00 0.00 0.00
Div2 779933.00 0.00 769804.00 0.00 10129.00 0.00 0.00
Div3 1605548.00 0.00 1525104.00 0.00 80444.00 0.00 0.00
Div4 4891700.00 0.00 4256800.00 0.00 634000.00 0.00 900.00
7277181.00 0.00 6551708.00 0.00 724573.00 0.00 900.00Plz clarify whether u want to load text file as a file into database or value of this text file into database. If values are to be loaded from this text file, U can better format the text file and use SQL loader to load the file into database. By formatting the database, i mean remove the unnecessary headings and characters, kee only the values to be loaded idelimited by ' '(space) or ','(comma). Create a control file and load it into the target table.
-
Saving files to a specific folder
I used to be a PC, now I am a Mac, learning fast, but I have a problem in saving files from the web. I am using OS 10.4.7
I am using Firefox and Thunderbird.
When I try to save email or a picture from a web site I am presented with a Menu; Save as, Where and Format. The 'Where' is the problem.
When I click 'WHERE', I am presented with a list;
Network
Mac HD 80
Mac HD 60
Desktop
MCMP (HOME, where all my different folders are)
Applications
Movies
Music
Picures
When I click on MCMP, my home with all my sub folders, there is no way to save the file any place but just in MCMP. I have no options which folder in MCMP or sub folder of a main topic folder. Saving to MCMP just puts the file in with all my different folders.
How do I direct exactly which folder the item is to be saved into.
Thank You
WM300wm
Spring loaded folders: Drag a file to a flder, hold it over it and the folder will open. You can use this to drop files into sub folders and so on. The timing on how long you have to hold is controlled in the Finder preferences -> General Pane.
Another possibilty for your original question is to use Default Folder X, a shareware, that makes navigating open and close dialogues very easy.
http://www.stclairsw.com/
Regards
TD
Maybe you are looking for
-
Can you transfer everything on itunes on another computer to another
i have my old itunes with a lot of stuff on my home computer but i want to get all of it on my labtop can I do that?
-
Error in displaying Cascading Reports
Hi, I'm using ASP.NET 2.0 page to display reports from Crystal Reports Server XI R2. I have trouble when displaying dynamic cascading reports in my web page: I got this error message: List of Values failure: fail to get values. [Cause of error: initi
-
My iOS 4.2.1 firmware not compatible to upgrade? Why is that?
I am trying to update using an external ipsw because itunes won't show me the updates, it says 4.2.1 is the latest update and would'nt let me update to any other version. Now, when i Option+Click on Restore or on Find update it says that my firmware
-
Where is the edge animate trigger shortcut in cc 2014
where is the edge animate trigger shortcut in cc 2014. like play, stop etc?
-
Is there a possibility to rename the dashboard after generating the reports
hai, is there a possibility to rename the dashboard after generating the reports in the dashboards with out affecting the reports. if it is possible, plz explain me in detail to process... Thanks in advance.