How to Save pdf file in the BLOB field in the database
I have to save a pdf file which is on the client machine to save in the database column of type BLOB. How can i do that?
LostWorld wrote:
I have to save a pdf file which is on the client machine to save in the database column of type BLOB. How can i do that?PL/SQL code cannot hack across the network. break into that client machine, and read that PDF file from the client's harddrive.
There is a very fundamental client-server principle at stake here - the purpose of the client. What is the purpose of the client? Amongst others, it is to interface with the client hardware and peripherals and devices. Like reading the client keyboard and sending that to the server. Or reading data from the sever and rendering it on the client's display device. Or to receive CSV data from the server and writing it to a local file.
It's purpose is also to read a local file, like a PDF file, and submit that file's contents to the server for storage.
The following pseudo code explains the basic principle:
client
// call oracle to create a LOB
ExecuteSQL( 'DBMS_LOB.CreateTemporary( .. )' )
open file( fileHandle )
while not EOF( fileHandle )
// read data from the file
read file( fileHandle, buffer )
// write this buffer to the LOB in Oracle
ExecuteSQL( 'DBMS_LOB.writeAppend( .. )' )
end while
close file( fileHandle )
// now tell Oracle what to do with that LOB
ExecuteSQL( '...' )
.. etc..Thus the client:
a) creates a LOB in Oracle via a PL/SQL call
b) passes data from the client and appends it to the LOB
c) tells Oracle what to do with LOB, such as inserting it into a table
Similar Messages
-
How to save pdf file in database
Dear All,
my application is forms 6i and database is 8i,requirement is that how to save pdf file in database and users can view through formsI'll apologize up front for the length of this post. I have a few database procedures I created that write a file to a BLOB column in a table as well as retrieve the BLOB from the column after it stored there. I have successfully stored many different types of binary file to the database using these procedures - including PDF files. I have not used these procedures in a Form so I can confirm that they will work, but theoretically they should work. I'm including the code for each procedure in this posting - hence the apology for the long post! :-)
Also, since these procedures reside on the database you will need to use Forms TEXT_IO built-in package to write your file to the server before you can use these procedures to store and retrieve the file from the database.
These procedures reads and writes a binary file to a table called "LOB_TABLE." You will need to modify the procedure to write to your table.
-- Author : Craig J. Butts (CJB)
-- Name : load_file_to_blob.sql
-- : This procedure uses an Oracle Directory called "IN_FILE_LOC". If you
-- already have a directory defined in the database or would prefer to use
-- a different Directory name, make sure you modify line 21 to reflect the
-- new Directory name.
-- ==================================================================================
-- History
-- DATE WHO DESCRIPTION
-- 12/11/07 CJB Created.
CREATE OR REPLACE PROCEDURE load_file_to_blob (p_filename IN VARCHAR2) IS
out_blob BLOB;
in_file BFILE;
blob_length INTEGER;
vErrMsg VARCHAR2(2000);
BEGIN
-- set the in_file
in_file := BFILENAME('IN_FILE_LOC',p_filename);
-- Get the size of the file
dbms_lob.fileopen(in_file, dbms_lob.file_readonly);
blob_length := dbms_lob.getlength(in_file);
dbms_lob.fileclose(in_file);
-- Insert a new Record into the tabel containing the
-- filename specified in P_FILENAME and a LOB_LOCATOR.
-- Return the LOB_LOCATOR and assign it to out_blob.
INSERT INTO lob_table (filename, blobdata)
VALUES (p_filename, EMPTY_BLOB())
RETURNING blobdata INTO out_blob;
-- Load the file into the database as a blob.
dbms_lob.open(in_file, dbms_lob.lob_readonly);
dbms_lob.open(out_blob, dbms_lob.lob_readwrite);
dbms_lob.loadfromfile(out_blob, in_file, blob_length);
-- Close handles to blob and file
dbms_lob.close(out_blob);
dbms_lob.close(in_file);
commit;
-- Confirm insert by querying the database
-- for Lob Length information and output results
blob_length := 0;
BEGIN
SELECT dbms_lob.getlength(blobdata) into blob_length
FROM lob_table
WHERE filename = p_filename;
EXCEPTION WHEN OTHERS THEN
vErrMsg := 'No data Found';
END;
vErrMsg := 'Successfully inserted BLOB '''||p_filename||''' of size '||blob_length||' bytes.';
dbms_output.put_line(vErrMsg);
END;
-- Author : Craig J. Butts (CJB)
-- Name : write_blob_to_file.sql
-- Descrip : This procedure takes a BLOB object from a database table and writes it
-- to the file system
-- ==================================================================================
-- History
-- DATE WHO DESCRIPTION
-- 12/11/07 CJB Created.
CREATE OR REPLACE PROCEDURE write_blob_to_file ( p_filename IN VARCHAR2 ) IS
v_blob BLOB;
blob_length INTEGER;
out_file UTL_FILE.FILE_TYPE;
v_buffer RAW(32767);
chunk_size BINARY_INTEGER := 32767;
blob_position INTEGER := 1;
vErrMsg VARCHAR2(2000);
BEGIN
-- Retrieve the BLOB for reading
BEGIN
SELECT blobdata
INTO v_blob
FROM lob_table
WHERE filename = p_filename;
EXCEPTION WHEN OTHERS THEN
vErrMsg := 'No data found';
END;
-- Retrieve the SIZE of the BLOB
blob_length := DBMS_LOB.GETLENGTH(v_blob);
-- Open a handle to the location where you are going to write the blob
-- Note: The 'WB' parameter means "Write in Byte Mode" and is only
-- available in the UTL_FILE pkg with Oracle 10g or later.
-- USE 'W' instead for pre Oracle 10q databases.
out_file := UTL_FILE.FOPEN('OUT_FILE_LOC',p_filename, 'wb', chunk_size);
-- Write the BLOB to the file in chunks
WHILE blob_position <= blob_length LOOP
IF ( ( blob_position + chunk_size - 1 ) > blob_length ) THEN
chunk_size := blob_length - blob_position + 1;
END IF;
dbms_lob.read(v_blob, chunk_size, blob_position, v_buffer );
UTL_FILE.put_raw ( out_file, v_buffer, TRUE);
blob_position := blob_position + chunk_size;
END LOOP;
END;Hope this helps.
Craig...
-- If my response or the response of another is helpful or answers your question please mark the response accordingly. Thanks! -
Can someone help find a fix of how to save PDF files from safari in iOS 5.0.1? The PDF files show a lock on the right hand side of tab. Only these lock PDF cannot be save. Any help will be highly appreciated.
I assume that you have iBooks or GoodReader or Adobe Reader - some app that will open PDF files so my suggestion would be to start with the basic things, restart your iPad, reset it or quit Safari and restart.
Restart the iPad by holding down on the sleep button until the red slider appears and then slide to shut off. To power up hold the sleep button until the Apple logo appears and let go of the button.
Reset the iPad by holding down on the sleep and home buttons at the same time for about 10-15 seconds until the Apple Logo appears - ignore the red slider - let go of the buttons.
In order to close/quit apps - Go to the home screen first by tapping the home button. Quit/close open apps by double tapping the home button and the task bar will appear with all of you recent/open apps displayed at the bottom. Tap and hold down on any app icon until it begins to wiggle. Tap the minus sign in the upper left corner to close the apps. Restart the iPad. Restart the iPad by holding down on the sleep button until the red slider appears and then slide to shut off.
To power up hold the sleep button until the Apple logo appears and let go of the button.
The lock to the right side of the tab indicates that the website is secure - or at least that is what it looks like in Safai on my iPad. Sites with the https in the address have the lock icon in the tab, non secure sites - web pages without the https - do not have the lock icon. I'm not sure if that has any bearing on it - none of the PDF files that I have opened in Safari have the lock icon.
But if you can open the file - it doesn't make sense that it would be locked??? Try the basic suff and see if any of that helps.
Message was edited by: Demo -
How to save .pdf file using office word and excel
Can someone help me how to save .pdf files using office word and excel? I reinstalled my adobe 7.0 pro in my new pc and before I was able to do it but with my old pc.
For anything after Office 2003, you have to print to the Adobe PDF printer. If you installed AA 7 on OS newer than XP, you may have to do a workaround to get it to work. With later versions of WORD you can always use the MS plugin for creating PDFs.
-
Storing a file in a BLOB field in the database through forms
Hi, I want to have a form that lets the user choose a file he has on his client side and load this file into a BLOB field in the database.
I know how to use "GET_FILE_NAME" to get the file, the second part is what I'm having problems with. Do I use an OLE object? How do I initailize it? Or what is the best way to go? Thanks.
--BassemAre you looking for something like this?
DECLARE
l_temp clob;
l_text varchar2(2000);
BEGIN
l_temp := httpuritype('http://www.oracle.com/PO.xsd').getclob;
l_text := substr(l_temp, 1, 2000);
dbms_output.put_line(l_text);
END;N.B.: Not Tested...
Regards.
Satyaki De. -
I
I made this file in indesign, the highlited empty spaces indicates that their is a hidden text and it pop up when searching for some words in pdf file. so how can I save pdf file to keep only the seen text ???Dear lrosenth,
I went through some codes/suggestions in internet and I found that I need to have cmap file and cid font file for the respective font since pdf doesn't support unicode fonts directly.
Can you help me to know where can I get cmap file and cid font file for tamil language font Latha(TrueType) microsoft font.
Regards,
Safiq -
How to upload a file to a BLOB column in the DB using PL/SQL???
Hi
I am trying to upload a file to a BLOB column in my database. I wana do this using some pl/sql procedure.I don't wana use webutil. is it possible??? and if so can anybody help me with this???
Regards
ShirazHello,
This is a stored procedure sample that show how insert into CLOB, BLOB and BFILE columns
CREATE OR REPLACE PROCEDURE Insert_document
PC$Type IN DOCUMENT.TYP%TYPE
,PC$Nom IN DOCUMENT.NOM_DOC%TYPE
,PC$Texte IN VARCHAR2
,PC$Image IN VARCHAR2
,PC$Fichier IN VARCHAR2
) IS
L$Blob BLOB;
L$Clob CLOB;
L$Bfile BFILE;
LN$Len NUMBER := dbms_lob.lobmaxsize;
LN$Num NUMBER ;
LN$src_off PLS_INTEGER := 1 ;
LN$dst_off PLS_INTEGER := 1 ;
LN$Langctx NUMBER := dbms_lob.default_lang_ctx ;
LN$Warn NUMBER;
BEGIN
-- Création of new raw --
If PC$Fichier is not null Then
L$Bfile := BFILENAME( 'FICHIERS_IN', PC$Fichier );
End if ;
-- Creation of temporary objetcs --
dbms_lob.createtemporary( L$Clob, TRUE ) ;
dbms_lob.createtemporary( L$Blob, TRUE ) ;
-- Loading text in CLOB column --
If PC$Texte is not null Then
L$Bfile := BFILENAME( 'FICHIERS_IN', PC$Texte );
dbms_lob.fileopen(L$Bfile, dbms_lob.file_readonly);
If dbms_lob.fileexists( L$Bfile ) = 1 Then
dbms_output.put_line(PC$Texte || ' open' ) ;
dbms_lob.loadclobfromfile(
L$Clob, -- Destination CLOB
L$Bfile, -- Source file pointer
LN$Len, -- # bytes to read
LN$src_off, -- Source start position
LN$dst_off, -- Target start position
dbms_lob.default_csid, -- CSID
LN$Langctx, -- Language Context
LN$Warn); -- Warning message
dbms_lob.fileclose(L$Bfile);
Else
raise_application_error( -20100, 'Erreur ouverture ' || PC$Texte ) ;
End if ;
End if ;
-- Loading image in BLOB column --
If PC$Image is not null Then
L$Bfile := BFILENAME( 'FICHIERS_IN', PC$Image );
dbms_lob.fileopen(L$Bfile, dbms_lob.file_readonly);
dbms_lob.loadblobfromfile(
L$Blob, -- BLOB de destination
L$Bfile, -- Pointeur de fichier en entrée
LN$Len, -- Nombre d'octets à lire
LN$src_off, -- Position source de départ
LN$dst_off); -- Position destination de départ
dbms_lob.fileclose(L$Bfile);
End if ;
-- Save --
Insert into DOCUMENT (ID, NOM_DOC, TYP, UTILISE, LOB_TEXTE, LOB_DATA, LOB_FICHIER)
Values( SEQ_DOCUMENT.NEXTVAL, PC$Nom, PC$Type, NULL, L$Clob, L$Blob, L$Bfile ) ;
-- Free the temporary objects --
dbms_lob.freetemporary( L$Clob ) ;
dbms_lob.freetemporary( L$Blob ) ;
END;
/The table structure for this sample is the following:
CREATE TABLE DOCUMENT (
ID NUMBER (5) PRIMARY KEY,
TYP VARCHAR2 (20),
UTILISE VARCHAR2 (30),
LOB_TEXTE CLOB,
LOB_DATA BLOB,
LOB_FICHIER BFILE,
NOM_DOC VARCHAR2 (100))
/Francois -
How to save PDF files on an iPad files
How do I save PDF files onto an iPad?
There are several common ways to do this:
1) Email the files to yourself and choose "Open In" from the mail application by long pressing on the attachment(s)
2) Use a file sharing service like box.net, dropbox, gdrive or skydrive and choose "open in" from those applications
3) Use iTunes as I describe in response to this thread: http://forums.adobe.com/thread/992991 -
Avoiding the 'Save PDF File As' dialog when printing to the adobe PDF printer from a service
Hello, can someone please help.
I have Adobe Acrobat 8 Pro installed.
I have an in house application which (among many other things) effectively monitors a directory and prints the file to the default printer. It works fine when run as an application.
I have set the defaults on the Adobe PDF printer to put the output PDF file into a directory and not to open it so it works silently without prompts.
When I run my application as a service, it brings up the 'Save PDF File As' dialog and I would like to avoid this. My impression is that if I put the right registry key in then it will work.
I do not want to do any scripting if I can avoid it.
Thanks for all constructive help given.Thank for your help Bill, but changing settings in the distiller did not seem to work. As my application prints directly to the default application without using anything specific to Acrobat, I was hoping there was a simple way forward. A colleague suggested copying registry entries from the account I logged on as to the S-1-5-18 entry, then rebooting. This had no effect as the prompt still comes up.
Aandi, I don't have the Acrobat SDK or any experience of it.
Also I'm not sure where any code/script would sit since the application is stable and so I would rather not change it.
If it amounts to a few lines of javascript sitting outside the application then that would be of interest. -
I downloaded ibooks to my ipad so that I can save PDF files to ibooks but I do not get an "open in ibooks" message to select. When I choose the icon, I only get mail or print option.
Where are these PDFs coming from? What do you mean by "save PDF files to ibooks" and then "I do not get an 'open ibooks' message? If they are saved to ibooks (I assume you used itunes to save a dragged in PDF to the ibooks panel in apps) then you should be able to open and view them in ibooks. If they are not in ibooks (I'm assuming this is the case, since you want to get an "open in ibooks" option from the *share* icon, right?) then where are they on the mini, which app?
-
How to save PDF file in a particular shared location
Hi All,
I am trying to save generated PDF file in a particular location like C:/Documents and Settings/FolderName/My Documents/test.png.
But Its givinhg following error.
[ERROR] [Image_Saver_0]ImageSaver: Access to the file path /C:/Documents and Settings/FolderName/My Documents/test.png is not allowed .
I am Using Image Saver action block.
To this passing PDF_Document output as Input to "Encoded image" of Image saver action block.
passing path as above in "Path" of Image saver action block.
MII version :14.0 SP4.
Can anybody suggest me how to give path to store PDF files in a particular location.
Thanks&Regards,
Rajee .Hello Hari,
Thanks for your reply.
I am trying to save currently on my local machine.
I also tried as suggested by Raman ,but its not working.
If I am trying to save in server machine, I am getting different error like
[ERROR] [Image_Saver_0]ImageSaver: \\01hw601622\temporaryshare\Temp\test.png (Logon failure: unknown user name or bad password) Exception: [\\01hw601622\temporaryshare\Temp\test.png (Logon failure: unknown user name or bad password)] ".
Folder name "Temp" is already created in this machine.
Path I am giving like "\\01hw601622\temporaryshare\Temp\test.png" in my Image saver action block.
My transaction is like this.
Kindly suggest me if I am wrong.
Regards,
Rajee Vuta. -
How to Save Pdf file in a particular format
Hi Experts,
Can anybody tell me how to save a pdf file in a particular format,My requirement is i have a print button in webdynpro ,when ever user clicks on print ,adobe form is opened ,if user clicks on save .Form is saving with adobe form name .My requirement is it should be saved as ID NO.Date.Pdf form lets Id is 0456 ,form should be saved as 0456.040614.pdf format, Thanks in Advance
Regards
SandeshHi Sandesh,
Please provide the complete code from print & save button.
Thanks & Regards,
Balamurugan G -
How to save pdf file(path) in oracle db
Hi all,
we are using forms 10g. the requirement is user can upload the pdf file from the forms. the pdf file should store in the server folder and the path can store in the db table field. when ever the user wish to download that pdf based up on the unique pdf name that should be open or save on client machine.
can anybody help me how to do this
Thank youHi Amatu Allah,
thank you for your reply
i have the code based upon the webutil functions but it is not working can u pls help me
Here---B8 is Block name
if :toolbar.li_mode in('M') then
if :b8.pdf_loc1 is not null then
declare
l_success boolean;
BEGIN
mesg(1);
l_success := webutil_file_transfer.Client_To_DB_with_progress
(:b8.pdf_loc1-------------------------------------------------------------------------------------source file location,
't002pod_pdf', ---------------------------------------------------------------------------------table name
'pdf',-----------------------------------------------------------------------------------------------column name
'doc_no = :b8.doc_no',---------------------------------------------------------------------doc_no is field
'Upload to Database in progress',
'Please wait',
false,
null
if l_success
then
message('File uploaded successfully into the Database');
else
message('File upload to Database failed');
end if;
exception
when others
then
message('File upload failed: '||sqlerrm);
END;
else
mesg('Plese Select The File name');
go_item('B8.pdf_open');
end if;
end if;
---------------------------------------------------------------------WEBUTIL FUNCTION BODY------------------------------------------------------------------------
FUNCTION Client_To_DB_With_Progress
( clientFile in VARCHAR2,
tableName in VARCHAR2,
columnName in VARCHAR2,
whereClause in VARCHAR2,
progressTitle in VARCHAR2,
progressSubTitle in VARCHAR2,
asynchronous in BOOLEAN default FALSE,
callbackTrigger in VARCHAR2 default NULL) return BOOLEAN is
BEGIN
return UploadInt
( clientFile,
tableName,
columnName,
whereClause,
true,
true,
progressTitle,
progressSubTitle,
asynchronous,
callbackTrigger);
END Client_To_DB_With_Progress;
-- Internal implementations ----
FUNCTION UploadInt ( clientFile in VARCHAR2,
spec1 in VARCHAR2,
spec2 in VARCHAR2,
spec3 in VARCHAR2,
toDB in BOOLEAN,
withProgress in BOOLEAN,
progressTitle in VARCHAR2,
progressSubTitle in VARCHAR2,
asynchronous in BOOLEAN default FALSE,
callbackTrigger in VARCHAR2 default NULL) return BOOLEAN is
clientFileSize PLS_INTEGER := 0;
clientFileChunks PLS_INTEGER := 0;
clientFileInfo VARCHAR2(1000 char);
result BOOLEAN := FALSE;
dataBuffer VARCHAR2(32767);
ignore VARCHAR2(2);
jobj ORA_JAVA.JOBJECT;
lastErrorCode PLS_INTEGER;
lastErrorArgs VARCHAR2(1000);
encodedFile ORA_JAVA.JOBJECT;
ftemp TEXT_IO.FILE_TYPE;
tempFileName VARCHAR2(512);
bool_ignore boolean;
BEGIN
mesg('inside function--2');
-- Client file cannot be null
if clientFile is null then
raise CLIENT_FILE_NULL;
end if;
-- AS file cannot be null. AppsServerFileWriter also handles this. Better to handle here.
if NOT toDB AND spec1 is null then
raise AS_FILE_NULL;
end if;
-- Make sure the client file to be uploaded exists and readable
-- If we don't raise exception here, we end up creating an empty file on DB or AS
if NOT webutil_file.file_is_readable(clientFile)
OR webutil_file.file_is_directory (clientFile) then
raise FILE_NOT_FOUND;
end if;
-- First check to see if a transfer is not currently happening
if In_Progress then
raise AGENT_BUSY;
end if;
-- reset the target
m_toDB := toDB;
-- Set up the file info
clientFileInfo := clientFile||'|0|'||
WEBUTIL_UTIL.BoolToStr(asynchronous,'A|','S|')||
WEBUTIL_UTIL.BoolToStr(withProgress,'Y|','N|')||
progressTitle||'|'||
progressSubTitle;
WebUtil_Core.setProperty(WebUtil_Core.WUT_PACKAGE,'WUT_FILE_INFO', clientFileInfo);
mesg('clietfileinfo: '||clientFileInfo);
-- get the size and chunk info of the client side file
clientFileInfo := WebUtil_Core.getProperty(WebUtil_Core.WUT_PACKAGE,'WUT_FILE_INFO');
clientFileSize := DelimStr.getNumber(clientFileInfo,1,true,'|');
mesg('size: '||clientFileSize);
if clientFileSize = 0 then
raise CLIENT_FILE_EMPTY;
-- no need to close AS file since it is not yet opened.
end if;
clientFileChunks := DelimStr.getNumber(clientFileInfo,2,true,'|');
-- Set up the Open command
if toDB then
if not m_DBEnabled then
raise TRANSFER_FORBIDDEN;
end if;
if not WebUtil_DB_Local.openblob(spec1, spec2, spec3,'W', m_maxTransferSize) then
WebUtil_core.Error(WebUtil_Core.WUT_PACKAGE,WebUtil_DB_Local.getLastError,
'WEBUTIL_FILE_TRANSFER.uploadInt');
raise READWRITE_ERROR;
end if;
else
if not WebUtil_Core.checkJava then
raise NO_JAVA;
end if;
if not checkASACL(spec1,m_writeACL) then
raise TRANSFER_FORBIDDEN;
end if;
jobj := JAVA_APPSERV_WRITER.NEW;
if not JAVA_APPSERV_WRITER.openFile(jobj,spec1) then
lastErrorCode := JAVA_APPSERV_WRITER.getLastError(jobj);
lastErrorArgs := JAVA_APPSERV_WRITER.getLastErrorArgs(jobj) ;
WebUtil_core.Error(Webutil_Core.WUT_PACKAGE,lastErrorCode,
'WEBUTIL_FILE_TRANSFER.uploadInt',lastErrorArgs);
raise READWRITE_ERROR;
end if;
end if;
-- Is this Async? if So we do nothing more here just set the callback and kick it off
if asynchronous then
-- set callbackTrigger even if it is null. we will take care
-- before calling
WebUtil_Core.SetCallbackTrigger(-1,callbackTrigger);
ignore := WebUtil_Core.getProperty(WebUtil_Core.WUT_PACKAGE,'WUT_TRANSFER');
m_chunks := clientFileChunks;
m_fileSize := clientFileSize;
m_uploadSucceeded := NULL;
if not toDB then
m_persistObj := ORA_JAVA.NEW_GLOBAL_REF(jobj);
end if;
result := true;
else
if NOT toDB then
encodedFile := JAVA_FILE.createTempFile('WUAS','.enc');
tempFileName := JAVA_FILE.getPath(encodedFile);
end if;
-- loop through each chunk
for i in 1..clientFileChunks LOOP
dataBuffer := WebUtil_Core.getProperty(WebUtil_Core.WUT_PACKAGE,'WUT_TRANSFER',false);
if (WebUtil_Core.isError) or (dataBuffer is null) then
raise AGENT_BUSY;
end if;
-- Write to the correct place
if toDB then
WebUtil_DB_Local.WriteData(dataBuffer);
else
ftemp := TEXT_IO.FOPEN(tempFileName, 'W');
TEXT_IO.PUT(ftemp, dataBuffer);
TEXT_IO.FCLOSE(ftemp);
-- if not JAVA_APPSERV_WRITER.WriteData(jobj,dataBuffer) then
if not JAVA_APPSERV_WRITER.decodeBASE64File(jobj,tempFileName) then
lastErrorCode := JAVA_APPSERV_WRITER.getLastError(jobj);
lastErrorArgs := JAVA_APPSERV_WRITER.getLastErrorArgs(jobj) ;
WebUtil_core.Error(Webutil_Core.WUT_PACKAGE,lastErrorCode,
'WEBUTIL_FILE_TRANSFER.UploadInt',lastErrorArgs);
raise READWRITE_ERROR;
end if;
end if;
end LOOP;
if toDB then
if WebUtil_DB_Local.CloseBlob(clientFileSize) then
result := true;
else
WebUtil_core.Error(Webutil_Core.WUT_PACKAGE,WebUtil_DB_Local.getLastError,
'WEBUTIL_FILE_TRANSFER.UploadInt');
end if; -- close
else
bool_ignore := JAVA_FILE.DELETE_(encodedFile);
if JAVA_APPSERV_WRITER.CloseFile(jobj,clientFileSize) then
result := true;
else
lastErrorCode := JAVA_APPSERV_WRITER.getLastError(jobj);
lastErrorArgs := JAVA_APPSERV_WRITER.getLastErrorArgs(jobj) ;
WebUtil_core.Error(Webutil_Core.WUT_PACKAGE,lastErrorCode,
'WEBUTIL_FILE_TRANSFER.UploadInt',lastErrorArgs);
raise READWRITE_ERROR;
end if;
end if;
end if; -- async
return result;
EXCEPTION
when CLIENT_FILE_EMPTY then
WebUtil_Core.Error(Webutil_Core.WUT_PACKAGE,133,'WEBUTIL_FILE_TRANSFER.UploadInt', clientFile);
return false;
when CLIENT_FILE_NULL then
WebUtil_Core.Error(Webutil_Core.WUT_PACKAGE,130,'WEBUTIL_FILE_TRANSFER.UploadInt');
return false;
when AS_FILE_NULL then
WebUtil_Core.Error(Webutil_Core.WUT_PACKAGE,117,'WEBUTIL_FILE_TRANSFER.UploadInt');
return false;
when FILE_NOT_FOUND then
WebUtil_Core.Error(Webutil_Core.WUT_PACKAGE,129,'WEBUTIL_FILE_TRANSFER.UploadInt', clientFile);
return false;
when TRANSFER_FORBIDDEN then
WebUtil_Core.Error(Webutil_Core.WUT_PACKAGE,121,'WEBUTIL_FILE_TRANSFER.UploadInt');
return false;
when AGENT_BUSY then
WebUtil_Core.Error(Webutil_Core.WUT_PACKAGE,116,'WEBUTIL_FILE_TRANSFER.UploadInt');
return false;
when READWRITE_ERROR then
return false;
when NO_JAVA then
return false;
when WebUtil_Core.BEAN_NOT_REGISTERED then
WebUtil_Core.ErrorAlert(WebUtil_Core.getImplClass(WebUtil_Core.WUT_PACKAGE)
||' bean not found. WEBUTIL_FILE_TRANSFER.UploadInt will not work');
RAISE FORM_TRIGGER_FAILURE;
when WebUtil_Core.PROPERTY_ERROR then
RAISE FORM_TRIGGER_FAILURE;
END UploadInt; -
How to save pdf files to a folder on my tablet?
How do I save an edited pdf document to a folder on my 'desktop', where I can find it again? I am using an android tablet.
I am not sure what you mean by saving on the 'desktop'. Are you trying to share the file across devices?
However, in case you want to save a file in a different folder in Adobe Reader for Android, you can go tap on the 'Documents' tab. On the top toolbar, you will see an 'Edit' option. Tap on it and select the file(s) you want to move. Now, on the top toolbar, you would see an icon which looks like a folder with an arrow. Tap on this and now you can enter the desired location where you want to save this file -
How to save pdf files from mail to i pad2
How can i save a pdf file from e mail to the i pad2 ???
From Google what? There are so many Googe services (mail, docs, drive, ...) that you really need to provide more details. Also what exact problems you experience.
Maybe you are looking for
-
BootCamp Problem - Windows 8 On Macmini3,1
Good day to you all I have Macmini3,1 with 4Gb Ram and i want to install windows 8. i went to find a manual in the web and found out this one : http://www.pocket-lint.com/news/45898/how-to-install-windows-8-on-a-mac first of all i don't have this scr
-
HP Photosmart Pro B9180 - print problem - color
The photo output is not the correct color. I tried cleaning and calibartaing but tere does not seem to be magenta printing. the reoprt says the printhead is oK, but it is not printing correctly ? Any ideas ?
-
Hi Gurus, I have some basic question , 1.L-Next Empty Bin:- As we already defines the search strategy for the storage type & structure of the bin with its way of deciding the bin. Why it is require to define it as a separate strategy(Assiged to
-
I downloaded a TV series and all the episodes show "downloaded" and when I go to play them in iTunes on my laptop, the screen is black and it wont play. I made sure I have the latest version of iTunes. I have no problem playing them on my iPad. This
-
Formatting Strings to two decimal places
When formatting double amounts to two decimal places, I looked up the procedure online and I have this so far: public void calculatePayments() double monthlyInterestRate = (Double.parseDouble(interestBox.getText())/12)/100; d