Newbie Upoad PDF to blob then Delete File.pdf
I want the user to upload A PDF and import it into A BLOB.
That part is working.
If the user uploads the WRONG PDF, I want them to be able to delete the FILEA.PDF.
They can delete the FILEA.PDF, if they wait 4 or 5 minutes.
Delete the FileA.PDF is the part that is not working, if the user does it in less
than 4 or 5 minutes.
The PDF is about 60K.
Below is the sample code:
=========================
<code>
SELECT mypdf
INTO temp_blob
FROM fcsImpactUpload
where renname= 'FileB.PDF'
FOR update;
IF dbms_lob.fileexists(src_file)=1 THEN
dbms_lob.fileopen(src_file, dbms_lob.file_readonly);
lgh_file := dbms_lob.getlength(src_file);
dbms_lob.loadfromfile(temp_blob, src_file, lgh_file);
UPDATE fcsImpactUpload
SET de_pdf = temp_blob
where renname= 'FileB.PDF';
COMMIT;
END IF;
UTL_FILE.FGETATTR('AIMSORAPDF', 'FileA.PDF', DOESEXIST, FLEN, BSIZE);
IF DOESEXIST THEN
UTL_FILE.FREMOVE('AIMSORAPDF','FileA.PDF');
ELSE
EXIT; -- File does not exist
END IF;
</code>
Forget to say verasion
Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - Prod
PL/SQL Release 10.2.0.4.0 - Production
"CORE 10.2.0.4.0 Production"
TNS for 32-bit Windows: Version 10.2.0.4.0 - Production
NLSRTL Version 10.2.0.4.0 - Production
Similar Messages
-
I am backing up my macbook pro on an external harddrive because I have run out of space on it. I am wondering if when I do a backup and then delete those files from my computer, during the next backup, those files will still be availavle on the external harddrive or will they be deleted because they are no longer on my computer. Confusing I know but I'm sure there is a simple answer to it!
Its good to have both, a time machine backup, AND a second cloned HD.
If your HD ever dies on you, you can in a matter of 20 mins, install the old HD and be up and running again quickly.
Its extremely important to have MULTIPLE backups, so many people have been so upset at losing massive amounts of data, because they "had a backup HD" for their data, but when that died etc, its gone.
1 backup is never enough, and the data on your computer "doesnt count" as a backup. -
My Macbook won't boot up because there sin't enough free space to run the startup disk. My Macbook now won't go past the blue screen so exactly how am I meant to be able to delete files if I can't access the computer?
Do you have a bootable backup?
What operating system are you running? If OS X 10.6 or lower, boot from your original OS X DVD or a retail OS X DVD and then delete files as needed. Your goal should be to get to 10% of your disk capacity free.
If you have OS X 10.7 Lion or 10.8 Mountain Lion, you don't have many choices in recovery mode (boot holding the command and r keys down).
If you have a FireWire or Thunderbolt connection, you can try target disk mode with another mac.
If none of those work, perhaps your local Apple store can help with a bootable external drive. -
i am deleting files through my trash in my macbook pro (2010) and then emptying the trash can, but my hard disk space is not increasing! i recently upgraded to lion and the problem is new, wasn't the same with snow leopard! HELP!!!!!
When i press command+I (Get Info) i see that there is 140 GB "Available Space" on my hard disk but when i click on my hard disk icon on the desktop, and then press "space" i only see 102 GB free!! What the f*???
Please HELP!!!!!! Getting second thoughts on Lion!!!!Hi b,
Have you restarted yet? -
when I open a music file from a source other than apple, does itunes create it's own file and can I then delete the original mp3?
If you use iTunes' default settings then when you add a file to iTunes it places a copy of the file in the iTunes media folder and it leaves the original in place. The exception is when you drag it to the Automatically Add To iTunes folder.
It does not convert the file. You can delete the original if you wish. -
I deleted files from my MacBook Air after it said my start up disk was almost full. It did several xs, then the color wheel wouldn't stop spinning, so I closed it. Then after a sufficient amount of time, I tried to start it up again, only now the Apple start up wheel just spins non stop and nothing else happens. How or what can I do to get my MacBook Air to work again, without having to take it in? Thanks so much!
Backup your MBA then take it to Apple
-
When I got on my laptop today, I saw that there was a message from HP Support Assistant. It says that I have an older versions of windows and that the previous versions of windows was saved in a folder c:\windows.old. it says that the folder is very large and it recommends me coping any old files I want to keep and then delete the Windows.old to free up more disk space. It has a help column that says, "How do I backup my files from Window.old? When I do what it tells me to do, I can't find it. Could someone please help me? Thanks you.
Product Name: HP Pavilion g7 Notebook PC
Product Number: B5R84UA#ABA
O/Sis Microsoft Windows 7 Home Premium (64-Bit) SP 1
Systems BIOSis F.14Hi,
Looks like a new OS has been installed/re-installed. Do you want to keep Windows.old folder for just in case? Otherwise you can delete it using the following instructions:
http://windows.microsoft.com/is-IS/windows7/How-do-I-remove-the-Windows-old-folder
Regards.
BH
**Click the KUDOS thumb up on the left to say 'Thanks'**
Make it easier for other people to find solutions by marking a Reply 'Accept as Solution' if it solves your problem. -
I created a profile and saved it to the desktop. (I have read since then not to do this but it's too late). I then deleted the profile and all the files. When I did this it deleted everything I had saved on my desktop. I have searched the hard drive for the files and they are nowhere to be found. Is there anyway to recover them?
You will have to use an undelete utility like Recuva to get those files back.
*Recuva: http://www.piriform.com/recuva
You should never specify an existing folder for a new profile unless that folder is an existing profile.
If you remove the files in the profile when you delete that profile via the Profile Manager then all files will be removed as you've found out. -
I deleted all my photos and videos and then delete the deleted files but the photo app is still taking up 12 GB of space and I have no room for new stuff. How can I clear the memory space used by my deleted videos and photos? I don't know why the photos are still taking up space and if I will have to reset my phone to get rid of the problem.
Hey there TowneJ,
Welcome to Apple Support Communities.
The article linked below provides troubleshooting tips that’ll likely resolve the issue that you’ve described, where deleted files appear to be taking up space on your iPhone 5.
If you get a "Not enough free space" alert on your iPhone, iPad, or iPod touch - Apple Support
So long,
-Jason -
Hi, the problem of deleting files / videos seeds desktop to go into Terminal and then sudo rm-rf ~ /. Trash Pohangina the answers I've had e of someone in her forum but when I write procedures line in Terminal as the Krever my password and it can not write anything there, I write but nothing comes and my problem is not löst.När I want to delete the movie / video image Frin desktop still arrive Finder wants to make changes.Type your password to allow this. But even that I type my password file / video is left I need help in an easier way or another set-even those on the terminal that I can not type my password to solve the problem Regards Toni
If you want to preserve the data on the boot drive, you must try to back up now, before you do anything else.
There are several ways to back up a Mac that isn't fully working. You need an external hard drive to hold the backup data.
1. Boot from the Recovery partition or from a local Time Machine backup volume (option key at startup.) Launch Disk Utility and follow the instructions in this support article, under “Instructions for backing up to an external hard disk via Disk Utility.”
2. If you have access to a working Mac, and both it and the non-working Mac have FireWire or Thunderbolt ports, boot the non-working Mac in target disk mode. Use the working Mac to copy the data to another drive. This technique won't work with USB, Ethernet, Wi-Fi, or Bluetooth.
3. If the internal drive of the non-working Mac is user-replaceable, remove it and mount it in an external enclosure or drive dock. Use another Mac to copy the data. -
I have a string of text sms and iMessages that I would like to save and then delete them from my phone, but gain access to them later if I need them. I prefer to have the string with the date/time stamp vs copying and pasting into a doc or text file. Is this possible?
Not unless you buy an app that accesses data from an iTunes backup. Check in the app store.
-
Mail stopped working. Now get blank screen with icons (delete, file, forward, etc) at top. Then goes blank. iPad 2 purchase 12/11
Try to reset your ipad and/or force quit the mail app
Reset
Hold down the sleep and home keys for about 20 seconds. When you see the silver apple, let go and let it reboot. No data will be lost.
Force close an app
Double tap the home button. When you see the app previews on the screen scroll sideways if needed to get the preview in question on the screen. Flick that preview up and off the screen to close the app. Single tap the home button or home screen preview to exit the mode. -
How do i save audio books to a file then delete from phone
How do I save an audio book to file then delete from my Iphone.
Perhaps he wants to free up space on the iPhone. The audio Books are a single download purchase, meaning you can't download them again for free.
-
Can I delete files in "All My Files" under Finder and Favorites without deleting them in the actual folders? If they will be deleted from the original folders then how do I put them on the external hard drive to save the documents, photos, and videos?
Switch to the Finder app and open its preferences.
Remove the check mark on the items you don't want displayed in the Sidebar tab.
The originals are not removed from the machine. -
I backed up my itunes folder to an external drive, then deleted it from the hard drive, then restored to the hard drive, but now can't see the files, playlists
Was the entire folder copied including the iTunesLibrary.itl file?
Maybe you are looking for
-
Date error ORA-01843: not a valid month
Hi, I am in a 4.01 Apex environment with NLS_DATE_FORMAT mm/dd/yyyy. I created a view with a CASE statements using 'when eventstartdate between '08/15/2010' and '06/1/2011' then...' clauses and the view is created fine. I also can query the view
-
Moving photos between projects
I'm having a problem - erratically - moving photos from one project to another. When I select one photo & drag it to a different project - the entire project gets moved instead of just the one selected photo. (I've double checked that there are no ph
-
Few condition types missing in Outline agreements
Hi, In PO, I am getting all conditions but in outline agreements (either contract or sch.agreement) few are missing. How to get all conditions in Outline agreements? Regards, Sattuj
-
Process Flow showing as busy - though Complete
Hi, A Process Flow is stuck because one mapping had only two out connections - OK, and Error, but no 'OK with Warning' route. The Process Flow was then moved forward by using 'Expediate'. The Process Flow completed, but the Status in the Runtime Audi
-
How do I get pas the download assistant when it keeps coming up with error 0? This is for the trial version of CS6 Design Web Version.