Procedure to grab PDF from fileSystem store into LONGRAW Datatype.
Hi All,
I have found there are ways to store PDF's from file system into BLOB datatype, but not into LONGRAW. In PeopleSoft we have only LONGRAW type.
Can any one send some hints to load PDF's from filesystem into Oralce 10g LONGRAW column.
Thanks in Advance.
Hi All,
I have found there are ways to store PDF's from file system into BLOB datatype, but not into LONGRAW. In PeopleSoft we have only LONGRAW type.
Can any one send some hints to load PDF's from filesystem into Oralce 10g LONGRAW column.
Thanks in Advance.
Similar Messages
-
I am unable to download pdfs from the web into my downloads folder
Since i did the new update on firefox (8-14?) I am unable to download pdfs from a website into my downloads folder. When I choose to view a pdf in a window, I get a blank window with the urlxxxx. pdf in the top...but a blank window. This is a change in the functioning of my browser since the update... i have changed nothing on preferences or anything
I am able to download pdf's into my downloads folder from safari, but really don't want to change all my bookmarks etc from firefox to start using safari. Am on a Mac OS 10.7.4
thanksHi Matt_G
nope...didn't help. When I typed in pdf into the search bar, nothing came into the content window.
thanks for any further assistance you can provide...really hate to have to use safari instead of firefox
trish.painter -
Grabbing Pixels from an image into an array
Hi,
I am new to the image processing using java. I want to get the pixel values of an image and store it into an text file. Can anyone help me with this?
This is what i've done yet? Is the values present in the text field the correct values of the pixels of the image.
import java.awt.*;
import java.awt.image.*;
import java.applet.*;
import java.util.*;
public class grabber extends Applet {
private TextField tf;
private TextArea ta;
private Label status;
private Canvas drawarea;
private Image img=null;
int ppmline=0;
public void init() {
setLayout(new GridLayout(1,2));
Panel left=new Panel();
left.setLayout(new BorderLayout());
Panel topleft = new Panel();
topleft.setLayout(new GridLayout(1, 4));
topleft.add(tf=new TextField());
Panel buttonsP = new Panel();
buttonsP.add(new Button("Load GIF"));
buttonsP.add(new Button("PPM Output"));
topleft.add(buttonsP);
left.add("North", topleft);
left.add("Center", drawarea=new Canvas());
left.add("South", status=new Label());
add(left); // left side of the applet.
add(ta=new TextArea()); // right side.
status.setText("See GIF files below.");
public void paint(Graphics appletg) {
Graphics g=drawarea.getGraphics();
if (img != null) {
g.drawImage(img, 0, 0, this);
g.dispose();
public boolean action(Event evt, Object arg) {
String s=(String) arg;
if(s.equals("Load GIF")) {
img=getImage(getCodeBase(), tf.getText());
repaint();
else if (s.equals("PPM Output")) getPixs();
return true;
void getPixs() {
int w=30, h=30;
// PPM output starts.
ta.setText("P3\n");
ta.appendText(Integer.toString(w) + " " + Integer.toString(h) + "\n");
ta.appendText("255\n");
handlepixels(img, 0, 0, w, h);
public void handlesinglepixel(int x, int y, int pixel) {
// pixel is in RGB model. It is a 4-byte long integer.
// It is converted into the string representation of PPM pixels.
// ie. Hex 0x00102030 becomes "16 32 48"
String s= Integer.toString((pixel & 0x00FF0000) >> 16) + " "
+ Integer.toString((pixel & 0x0000FF00) >> 8) + " "
+ Integer.toString(pixel & 0x000000FF) + " ";
// If we use PPM RAW format, then we have to use ascii characters instead.
// char c[]= {(char) ((pixel & 0x00FF0000) >> 16),
// (char) ((pixel & 0x0000FF00) >> 8) ,
// (char) (pixel & 0x000000FF) };
// String s=new String(c);
if (ppmline++>=3) { // comment out if you use RAW format.
ta.appendText(s + "\n"); // comment out if you use RAW format.
ppmline=0; // comment out if you use RAW format.
} else // comment out if you use RAW format.
ta.appendText(s);
public void handlepixels(Image img, int x, int y, int w, int h) {
int[] pixels = new int[w * h];
PixelGrabber pg = new PixelGrabber(img, x, y, w, h, pixels, 0, w);
try {
pg.grabPixels();
} catch (InterruptedException e) {
System.err.println("interrupted waiting for pixels!");
return;
if ((pg.status() & ImageObserver.ABORT) != 0) {
System.err.println("image fetch aborted or errored");
return;
for (int j = 0; j < h; j++) {
for (int i = 0; i < w; i++) {
handlesinglepixel(x+i, y+j, pixels[j * w + i]);im not at home or id post some source code but first off
if your going to write a file from a applet your going to
have to get by permisions.
so you should probably do this with a application
it would be alot easier
use toolkit.getdefaulttoolkit() to get the image then
use the pixel graber class to read it into a array
of the type you want string or char
then just write it into a file each element of the array
and when you want to read it just read it in with file reader
you could probaly do a test run just write in each value as
a string and put a comma between each value then use
stringtokenizer to read it back in its less efficient but
for a test run it would make things clearer
sorry if its not much help -
Procedure to Insert PDF from FIle System to Database
Hi ,
I have a requirement to put the pdf files from our Local Machine or File system into Database table ..
For that I have created a directory called "MY_PDF" with create and replace directory .
Also , I have created a database table to store the files from Local machine FIle System directory ( MY_PDF) .
I have created a procedure which takes 2 inputs ( ID and FIlename ) as parameters , this procedure when executes , it insert the file along with the ID in the database table .
Procedure is as follows :
CREATE OR REPLACE PROCEDURE proc_load_a_file( p_id IN NUMBER, p_filename IN VARCHAR2 )
AS
l_blob BLOB;
l_bfile BFILE;
x VARCHAR2(1000);
BEGIN
x:=p_filename;
INSERT INTO demo(id,theblob,filename) VALUES ( p_id, empty_blob() ,x)
RETURNING theBlob INTO l_blob;
UPDATE demo
SET locater =l_blob where id=p_id;
l_bfile := bfilename( 'MY_FILES', p_filename );
DBMS_LOB.FILEOPEN( l_bfile );
DBMS_LOB.LOADFROMFILE( l_blob, l_bfile,
DBMS_LOB.getlength( l_bfile ) );
DBMS_LOB.fileclose( l_bfile );
COMMIT;
END;
Now , my requirement is not to insert one one file each and every time when I execute the procedure .
My requirement is first to check the File system Directory (MY_PDF) . If
there is any pdf file in the directory then it will call that procedure and insert that file into the database untill no files found in the dorectory ( MY_PDF) .
I am not getting the idea how to do this ..
Please someone provide some valueable inputs .. so that I can finish it up .
Thanks
Prashant DwivediSuggest using the FlowElement.setStyle method to attach additional information about the image to the InlineGraphicElement that gets created. Looking at the example code in the posted link you'll need to pass that data to the imageLoadComplete method. The InlineGraphicElement can be found by saving interactionManager.absoluteStart before the graphic is inserted and then calling textFlow.findLeaf(savedAbsoluteStart).
Hope that helps,
Richard -
How to import pictures from Filesystem directly into subcatagory
Until now I import pictures via the File Menue into the "big pot". Then I try to find the files in this "big pot" and draw it by drag/drop into the desired catagory/sub - sub - sub ..... catagory. It is not easy to find such imported files among several 1000 pictures especially if they have different dates. So is it possible to import selected files directly from the filesystem into a subcategory.
Photoshop Elements 10 / WIndows 7
Regards Rainerto import photos either use the iPhoto file menu ==> import command or drag the photos to the iPhoto icon in the dock
LN -
Hello
I am using CR version 11.5.12.1838 and I would like to display/insert a BLOB field into a CR report and this BLOB field has a .PDF file in it. Is there anyway this can be done?
Your help would be appreciated
Thank you
alphaHi Alpha
Not as far as CR is concerned. Note that even adding a PDF as an OLE object to cr will result in only the 1st page being rendered.
From what I gather in the discussion here, I don't believe CR is the utility that can be used in this case.
- Ludek
Senior Support Engineer AGS Product Support, Global Support Center Canada
Follow me on Twitter -
How to open pdf from an url into an acrobat control for vb
I have a vb requirement like this:
We have pdf files generated on a server and put in path like http://servername:port/pdfReports/report.pdf
Desktop applications need to show these files.. we have an acrobat reader control on one of the forms and trying to load the pdf.
We want this to be implemented for clients who have older versions of pdf readers like ver 5, 6, 8, also.. not just 9
opening a file on the control like below works.
objPDF.LoadFile "c:\temp\test.pdf"
but network paths or http paths dont work.. what methods should be used ? and can anybody provide some sample code in vb if available.. so it is easy to understand dependencies.
Thanks,
HarishThere is no support for direct opening of an http/network-based path in the control. You need to use a standard web browser control instead and give it the URL for a PDF.
-
HT1848 apps purchased on my computer from itunes store into itunes will not transfer into ipod touch
my apps purchased do sync or download to ipod touch ??
Yeah, you probably have an app that is compatible with iOS 7+ and if you try to copy it to a device that is running iOS 6 or below it won't work.
-
ITunes cannot transfer movies bought from the Store onto the iPad.
I have an iPad Mini and iTunes cannot transfer movies bought from the Store onto the iPad.
'Manually manage videos' is ticked but then after each sync attempt it goes back to being unticked.
'Sync only checked songs and videos' is also ticked and remains so.
When I choose the movies to put on the iPad, it gives me an indication of how much space I have (enough), lets me sync and then goes back to zero.thanks jolieteddie,
FYI, I searched the side pane here after asking this question. It seems someone gave an answer that worked for me. I could not drag and drop a pdf from the desktop into iTunes or the Ipad2 directly for whatever reason. However in iTunes on the main menu under Files>Add, I could navigate to the desktop and add the pdf that way, then sync Books with the iPad. This worked!
I've attempted in the past to drag and drop videos, etc into iTunes and the iPad with no success. Somehow it never occurred to me to add them this way. Doh!
Good tip. -
hi,
i have a requirement to group a number of PDF from the Archive into a single PDF and send it as an attachment. I want to know the possiblity of grouping multiple PDFs into a single PDF.
Thanks in advance,
Anoop R.SIt's possible to concatenate PDFs.
You must concatenate them when you have the OTF data.
The code in bold letters is the key to join the smartforms
*& Form llamar_smartforms
FORM llamar_smartforms.
Nombre del formulario (en la transacción SMARTFORM)
CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'
EXPORTING
formname = 'ZCARTA_CONDICIONES_EXPATRIADOS'
IMPORTING
fm_name = name_funcion.
Comprobamos que no haya ocurrido ningun error
CHECK sy-subrc = 0.
Indica que no genere pantalla de previsualizacion
control-no_dialog = 'X'.
Indica que genere el OTF
control-getotf = 'X'.
output_options-tddest = 'LOCL'.
output_options-tdnewid = 'X '.
output_options-tdimmed = 'X '.
Call function para ejecutar el smartform.
el job_info contiene la informacion del OTF
CALL FUNCTION name_funcion
EXPORTING
control_parameters = control
parametros_ext = cert_emp_est
user_settings = space
output_options = output_options
IMPORTING
document_output_info = document
job_output_info = job_info
job_output_options = job_options
TABLES
pernrdat = tab_condiciones.
hrdata = cert_emp_est.
filename = nombre_fichero
CHECK NOT job_info-otfdata IS INITIAL.
DATA: lineas_otf(9) TYPE n.
DESCRIBE TABLE job_info_global-otfdata LINES lineas_otf.
lineas_otf = lineas_otf + 1.
INSERT lines of job_info-otfdata INTO job_info_global-otfdata
INDEX lineas_otf.
*Concatenamos pdfs
data my_tabix like sy-tabix.
DATA : lv_formname TYPE tdsfname.
DATA : lv_funcname TYPE tdsfname.
DATA : t_empleado LIKE zohr_gxc_employee OCCURS 0 WITH HEADER LINE,
t_labels TYPE TABLE OF zohr_t_lan.
lv_formname = 'ZOHR_GXC_ERROR'.
CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'
EXPORTING
formname = lv_formname
variant = ' '
direct_call = ' '
IMPORTING
fm_name = lv_funcname
EXCEPTIONS
no_form = 1
no_function_module = 2
OTHERS = 3.
CHECK sy-subrc EQ 0.
CALL FUNCTION lv_funcname
EXPORTING
control_parameters = control
output_options = output_options
user_settings = space
year = '2007'
IMPORTING
document_output_info = document
job_output_info = job_info
job_output_options = job_options
TABLES
labels = t_labels
empleado = t_empleado
EXCEPTIONS
formatting_error = 1
internal_error = 2
send_error = 3
user_canceled = 4
OTHERS = 5.
***********removing the initial and final markers from the OTF data**********
DELETE job_info-otfdata WHERE TDPRINTCOM = '//'.
*****************searching for the end-of-page in OTF table************
READ TABLE job_info_global-otfdata WITH KEY TDPRINTCOM = 'EP' transporting no fields. MY_TABIX = SY-TABIX + 1.
*********appending the modified OTF table to the final OTF table********
INSERT LINES OF job_info-otfdata INTO job_info_global-otfdata INDEX MY_TABIX.
Convierte de OTF a PDF los datos
CALL FUNCTION 'CONVERT_OTF'
EXPORTING
format = 'PDF'
IMPORTING
bin_filesize = expdfsize
TABLES
otf = job_info_global-otfdata
lines = expdfdata
EXCEPTIONS
OTHERS = 4.
nombre_fichero = 'C: emporal.pdf'.
IF sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
CALL FUNCTION 'GUI_DOWNLOAD'
EXPORTING
filename = nombre_fichero
filetype = 'BIN'
write_field_separator = 'X'
TABLES
data_tab = expdfdata
fieldnames = tab_def_reg
EXCEPTIONS
file_write_error = 1
no_batch = 2
gui_refuse_filetransfer = 3
invalid_type = 4
no_authority = 5
unknown_error = 6
header_not_allowed = 7
separator_not_allowed = 8
filesize_not_allowed = 9
header_too_long = 10
dp_error_create = 11
dp_error_send = 12
dp_error_write = 13
unknown_dp_error = 14
access_denied = 15
dp_out_of_memory = 16
disk_full = 17
dp_timeout = 18
file_not_found = 19
dataprovider_exception = 20
control_flush_error = 21
OTHERS = 22. -
I'm runnin XI Pro and since returning from Xmas break having difficulty copying pdfs from incoming e
I'm running XI Pro and since returning from Xmas break have had difficulty copying pdfs from incoming emails into a folder on my computer. They eirther don't copy across, random pdfs display or Copy & Replace message appears when there are no pdfs in view.
Hello Charles,
I would be concerned too if my MacBook Prowas running slowly. I found a couple of articles I recommend to help isolate and troubleshoot this issue.
I recommend reviewing this article first for possible causes of the slowness:
OS X Mavericks: If your Mac runs slowly
http://support.apple.com/kb/PH13895
You can further isolate the issue by determining if it is only happening in your user account or if it is happening system-wide:
Isolating an issue by using another user account
http://support.apple.com/kb/TS4053
Thank you for using Apple Support Communities.
Best,
Sheila M. -
From iTunes Store to Final Cut Pro
How do open a song I downloaded from iTunes Store, into Final Cut Pro?
I tried Opening it, in Final Cut, and I tried importing it. But it comes out as silence. Final Cut knows how long the song is, but that is it.
Then can I edit the song in Final Cut?You can't and shouldn't.
Your license doesn't permit it. -
Converting the layout from OTF format into PDF
Hi Experts,
I am new to SMART FORMS,I don't have a clue about how to convert the layout from OTF format into PDF format and how to store it in Presentation server.
Please send me a Model program or step by step approach of the same.
Useful inputs will be rewarded higher points.
Thanks in Advance,
DharaniHi,
The steps are given below:-
1) First get the name of your generated function module for the smartforms.
2) Then call the generated function module.
3) Then use the FM:CONVERT_OTF' to convert into PDF as shown below:-
call function 'CONVERT_OTF'
EXPORTING
format = 'PDF'
IMPORTING
bin_filesize = w_pdf_len
bin_file = w_pdf_xstring
TABLES
OTF = OUTPUT_DATA-OTFDATA
LINES = LT_LINES
EXCEPTIONS
err_max_linewidth = 1
err_format = 2
err_conv_not_possible = 3
err_bad_otf = 4
others = 5.
Hope this is clear.
Pravat.
<i>*Reward points if helpful.</i> -
Store pdf from ArchiveLink (binary) down to Netweaver file system
Hello!
I have a problem: I need to extract a pdf-file which is stored in table TOA01 in binary format. The pdf should be generated and stored into a pdf-file in the file system of the Netweaver application server.
The main problem: Whenever I extract the data from the table and write it down to a file, the data in the pdf-file is corrupted. I tried all kinds of convertation routines (OFT to Binary, OTF to XString, Binary to XString,...)
Can anybody help me with my problem? I need a pdf from the ArchiveLink table as a file on the filesystem.
Thank you for your help!
Best regards,
MarkusHello Otto!
thanks for your help. I compared the input- und the output-data now and discovered, that the data is identically. The problem which causes my problem, lies in the writing of the data into the file by dataset.
First, I extract my pdf binary data from database table with the following function module.
CALL FUNCTION 'SCMS_AO_TABLE_GET'
EXPORTING
arc_id = ls_toa01-archiv_id
doc_id = ls_toa01-arc_doc_id
comp_id = 'data'
IMPORTING
length = filesize
TABLES
data = lt_data
EXCEPTIONS
error_http = 1
error_archiv = 2
error_kernel = 3
error_config = 4
OTHERS = 5.
IF sy-subrc <> 0.
RAISE error_retrieving_file.
ENDIF.
The result of this operation is stored in lt_data and seems to be correct. I compared the filesize of a pdf which I downloaded from GUI and lt_data. The size is exactly the same amount of bytes.
This is the coding part which doesn't work properliy is the following:
OPEN DATASET lv_pdf FOR OUTPUT IN BINARY MODE.
IF sy-subrc = 0.
LOOP AT lt_data INTO ls_data.
transfer ls_data TO lv_pdf.
ENDLOOP.
ELSE.
RAISE error_writing_file.
ENDIF.
CLOSE DATASET lv_pdf.
When the data is written into the dataset, the resulting file is corrupted in a certain way. I compared the binary content of both files, the correct one and the file created with the dataset part and discovered, that the data is identically. Only some line breaks are different. The result of this little differences is a blank pdf file instead of the correct one with text. Seems like really every single bit position has to be identically to the working pdf. If there is one space in the file too much or one line break, the pdf is corrupted.
Can anybody help me and describe how to create a pdf file out of an internal table?
Best regards,
Markus -
How can i store values from my String into Array
Hi guys
i wants to store all the values from my string into an array,,,, after converting them into intergers,,,, how i can do this becs i have a peice of code which just give me a value of a character at time,,,,charat(2)...BUT i want to the values from String to store in an Array
here is my peice of code which i m using for 1 char at time
int[] ExampleArray2 = new int[24];
String tempci = "Battle of Midway";
for(int i=0;i>=tempci.length();i++)
int ascii = tempci.charAt(i); //Get ascii value for the first character.public class d1
public static final void main( String args[] )
int[] ExampleArray2 = new int[24];
String tempci = "Battle of Midway";
for(int i=0;i<tempci.length();i++)
int ascii = tempci.charAt(i);
ExampleArray2=ascii;
for(int i=0;i<ExampleArray2.length;i++)
System.out.println(ExampleArray2[i]);
Maybe you are looking for
-
How to get a field from an attached excel/csv?
I currently manage some price lists for the company I work for. They are graphical, and usually created in inDesign and then exported to pdf. I'm looking for a way to attach our company's prices in an excel sheet, (or delimited file) and be able to p
-
On the same page I have a gallery which includes pictures and people's names. I would like to be able to filter that gallery by adding an A to Z list at the bottom of the page so that when the user clicks on the letter, "P" only the names that start
-
Has anyone tried to use the example XMLResourceAdapter?
I get various java errors when trying to use the sample XML file resource adapter code supplied in the /idm2525/REF folder. I believe my java environment is Ok. I compiled the XMLResourceAdapter.java as per instructions. I get the 3 class files. I ad
-
Organization template for keynote?
Is anyone aware of a good organization chart template for use in Keynote 6.0.1? The chart is fairly complicated and I just can't deal with doing this manually. Thanks!
-
Sub: code for accessing 4 webcams from the usb ports
sir , i want to connect 4 webcams in the system and access these four cams symultaneousely . how can i do that using java... by ,johnpaul