How to know the directoy from a file
I have a file created in java , how do i get the directoypath on an easy way with the name of the file. Is there a methode? Or to I have to play with strings?
If you created a file you must hava a File object. The File object has a number of methods to obtain the full path of the file, check out: getAbsolutPath, getCanonicalPath, getParent, getPath, etc.
Similar Messages
-
How to load the data from .csv file to oracle table???
Hi,
I am using oracle 10g , plsql developer. Can anyone help me in how to load the data from .csv file to oracle table. The table is already created with the required columns. The .csv file is having about 10lakh records. Is it possible to load 10lakh records. can any one please tell me how to proceed.
Thanks in advance981145 wrote:
Can you tell more about sql * loader??? how to know that utility is available for me or not??? I am using oracle 10g database and plsql developer???SQL*Loader is part of the Oracle client. If you have a developer installation you should normally have it on your client.
the command is
sqlldrType it and see if you have it installed.
Have a look also at the FAQ link posted by Marwin.
There are plenty of examples also on the web.
Regards.
Al -
How to read the data from Excel file and Store in XML file using java
Hi All,
I got a problem with Excel file.
My problem is how to read the data from Excel file and Store in XML file using java excel api.
For getting the data from Excel file what are all the steps i need to follow to get the correct result.
Any body can send me the code (with java code ,Excel sheet) to this mail id : [email protected]
Thanks & Regards,
Sreenu,
[email protected],
india,If you want someone to do your work, please have the courtesy to provide payment.
http://www.rentacoder.com -
How to Load the data from excel file(Extension is .CSV) into the temp.table
Hi
How to Load the data from excel file(Extension is .CSV) into the temporary table of oracle in Forms11g.
My Forms Version is - Forms [64 Bit] Version 11.1.2.0.0 (Production)
Kindly Suggest the Solution.
Regards,
SachinHello Sachin,
You can use the following metalink note:How to Read Data from an EXCEL Spreadsheet into a Form Using Webutil Client_OLE2 (Doc ID 813535.1) and modify it a little bit.
Instead of copy values into forms you can save them in your temporary table.
Kind regards,
Alex
If someone's helpful or correct please mark it accordingly. -
How to load the data from excel file into temprory table in Forms 11g?
Hi
How to Load the data from excel file(Extension is .CSV) into the temporary table of oracle in Forms11g.
My Forms Version is - Forms [64 Bit] Version 11.1.2.0.0 (Production)
Kindly Suggest the Solution.
Regards,
SachinDeclare
v_full_filename varchar2(500);
v_server_path varchar2(2000);
v_separator VARCHAR2(1);
v_filename VARCHAR2(400);
filename VARCHAR2 (100);
v_stop_load varchar2 (2000);
v_rec_error_log varchar2(4000);
v_error_log varchar2(4000);
ctr NUMBER (12);
cols NUMBER (2);
btn number;
RES BOOLEAN;
application ole2.obj_type;
workbooks ole2.obj_type;
workbook ole2.obj_type;
worksheets ole2.obj_type;
worksheet ole2.obj_type;
cell ole2.obj_type;
cellType ole2.OBJ_TYPE;
args ole2.obj_type;
PROCEDURE olearg
IS
args ole2.obj_type;
BEGIN
args := ole2.create_arglist;
ole2.add_arg (args, ctr);
ole2.add_arg (args, cols);
cell := ole2.get_obj_property (worksheet, 'Cells', args);
ole2.destroy_arglist (args);
END;
BEGIN
v_full_filename := client_get_file_name(directory_name => null
,file_name => null
,file_filter => 'Excel files (*.xls)|*.xls|'
||'Excel files (*.xlsx)|*.xlsx|'
,message => 'Choose Excel file'
,dialog_type => null
,select_file => null
If v_full_filename is not null Then
v_separator := WEBUTIL_CLIENTINFO.Get_file_Separator ;
v_filename := v_separator||v_full_filename ;
:LOAD_FILE_NAME := substr(v_filename,instr(v_filename,v_separator,-1) + 1);
RES := Webutil_File_Transfer.Client_To_AS(v_full_filename,"server_path"||substr(v_filename,instr(v_filename,v_separator,-1) + 1));
--Begin load data from EXCEL
BEGIN
filename := v_server_path||substr(v_filename,instr(v_filename,v_separator,-1) + 1); -- to pick the file
application := ole2.create_obj ('Excel.Application');
ole2.set_property (application, 'Visible', 'false');
workbooks := ole2.get_obj_property (application, 'Workbooks');
args := ole2.create_arglist;
ole2.add_arg (args, filename); -- file path and name
workbook := ole2.get_obj_property(workbooks,'Open',args);
ole2.destroy_arglist (args);
args := ole2.create_arglist;
ole2.add_arg (args, 'Sheet1');
worksheet := ole2.get_obj_property (workbook, 'Worksheets', args);
ole2.destroy_arglist (args);
ctr := 2; --row number
cols := 1; -- column number
go_block('xxx');
FIRST_RECORD;
LOOP
--Column 1 VALUE --------------------------------------------------------------------
olearg;
v_stop_load := ole2.get_char_property (cell, 'Text'); --cell value of the argument
:item1 := v_stop_load;
cols := cols + 1;
--Column 2 VALUE --------------------------------------------------------------------
olearg;
:item2 := ole2.get_char_property (cell, 'Text'); --cell value of the argument
cols := cols + 1;
--<and so on>
ole2.invoke (application, 'Quit');
ole2.RELEASE_OBJ (cell);
ole2.RELEASE_OBJ (worksheet);
ole2.RELEASE_OBJ (worksheets);
ole2.RELEASE_OBJ (workbook);
ole2.RELEASE_OBJ (workbooks);
ole2.RELEASE_OBJ (application);
END;
--End load data from EXCELPlease mark it as answered if you helped. -
How to load the data from excel file into table in oracle using UTL_FI
How to load the data from excel file into table in oracle
and from table to excel file
using UTL_FILE package
Please give me some exampleThis is something i tried in oracle apex
http://avdeo.com/2008/05/21/uploading-excel-sheet-using-oracle-application-express-apex/
Regards,
CKLP -
How to transfer the tables from one file group to another file group in SQL 2008.?
Hello all,
I have few issues regarding the transfer of the tables from one file group to another file group in SQL 2008 and also How can we backup
and restore the particular database based on file group level.
Let’s say I have a tables stored within the different FG. such as
Tables
File group
Dimension tables
Primary
Fact tables
FG1
FG2…
zzz_tables
DEFAULT_FG
dim.table1 DEFAULT_FG
dim.table2 DEFAULT_FG
Here all I want to transfer the dim.table1 ,dim.table2 from DEFAULT_FG to the Primary File
group .So is there simple methods for transfer the dim.table1,2 from one FG to another .I have tried somewhat but I couldn’t get the exact way .So if someone have better idea please share your knowledge that would be really appreciated.
Secondly after moving those dim.table1 ,dim.table2 from DEFAULT_FG to Primary ,All I want to backup and restore the database only containing the Primary and FG1,FG2… not
a DEFAULT_FG.Is it possible or not.?
Hope to hear from the one who knows better approach for this kind of task .Your simple help will be much appreciated.
Regards,
Anil MaharjanWell after all my full day research on this topic had paid off, I finally got the solution and am so happy to research on these things. It makes
us feel really happy after all our research and hard work doesn't goes as waste.
Finally I got what I am looking for and want to make sure that I am able to transfer the tables from DEFAULT_FG to another FG without tables
having clustered index on that tables .
With the help of the link below I finally got my solution where Roberto’s coded store procedure simply works for this.
Really thanks to him for his great post and thanks to all for your response and your valuable time.
http://gallery.technet.microsoft.com/scriptcenter/c1da9334-2885-468c-a374-775da60f256f
Regards,
Anil Maharjan -
How to read the data from a file in another computer with user name and password login
How to read read the data from a file in anohter computer which need to login with user name and password?
duplicate post: http://forums.ni.com/t5/LabVIEW/log-on-the-other-computer-with-user-name-and-password/m-p/2061478
duplicate post: http://forums.ni.com/t5/LabVIEW/do-need-to-enter-the-user-name-and-password-when-TCP-ip/m-p/2061612
duplicate post http://forums.ni.com/t5/LabVIEW/log-on-the-other-computer-with-user-name-and-password/m-p/2060682 -
How to know the size of a file in a program ?
I am compiling a program and I have to use a function in Java to know the size of some files. How can I do? Thanks
File.length() not good enough?
-
How to extract the mailboxes from *.edb files
I am using windows 2007, SP2, 64 bit operating system and exchange server 2007 on top it.
I have migrated my users to a third party solution.
Unfortunately, during this migration, there are 2 uses who seems to have lost few e-mails (nearly 2 weeks e-mails ..not sure how that happened but the backup PST does not have it hence it was not uploaded to the third party provider ...)
How do i get the pst from .edb file so I can put it again to synch with the new platform ??Hello,
You may do a single mailbox recovery by referring to:
How to recover or restore a single mailbox
http://support.microsoft.com/kb/813337
Thanks,
Simon -
How to display the content from a file stored in database
when i am trying to display the content from a file which stored in database on oracle report 10g
data are displaying as following. please help me to display the data in readable format
<HTML LANG="en-US" DIR="LTR">
<!-- Generated: 1/11/2006, postxslt.pl [1012] v1
Source: amsug304286.xml
File: amsug304286.htm
Context: nil
Tiers: ALWAYS
Pretrans: YES
Label: Release 12 -->
<HEAD>
<!-- $Header: amsug304286.htm 120.4 2006/11/01 20:57:29 appldev noship $ -->
<!--BOLOC ug1_OMPO1010302_TTL--><TITLE>Product Overview (ORACLE MARKETING)</TITLE><!--EOLOC ug1_OMPO1010302_TTL-->
<LINK REL="stylesheet" HREF="../fnd/iHelp.css">
</HEAD>
<BODY BGCOLOR="#F8F8F8">
<A NAME="T304286"></A><A NAME="ProdOve"></A>
<CENTER><H2><!--BOLOC ug1_OMPO1010302--><B>Product Overview</B><!--EOLOC ug1_OMPO1010302--></H2></CENTER>
<p><!--BOLOC ug1_OMPO1010304-->Oracle Marketing drives profit, not just responses, by intelligently marketing to the total customer/prospect base. By leveraging a single repository of customer information, you can better target and personalize your campaigns, and refine them in real time with powerful analytical tools.<!--EOLOC ug1_OMPO1010304--></p>
<p><!--BOLOC ug1_OMPO1006611-->With tools necessary to automate the planning, budgeting, execution, and tracking of your marketing initiatives, Oracle Marketing provides you with:<!--EOLOC ug1_OMPO1006611--></p>
<ul>
<li>
<p><!--BOLOC ug1_OMPO1006612--><B>Customer Insight</B> - With sophisticated customer management and list generation, Oracle Marketing enables you to quickly generate target lists and segments using an intuitive user interface. The easy to use Natural Query Language Builder (NLQB) lets you query for customers or prospects using a natural language while hiding data complexity; fatigue management ensures that you do not over-contact the same customers with marketing messages; and predictive analytics helps you predict customer behavior that you can leverage to produce significant increases in marketing return on investments (ROI).<!--EOLOC ug1_OMPO1006612--></p>
</li>
<li>
ls.<!--EOLOC ug1_OMPO1010304--></p>
<p><!--BOLOC ug1_OMPO1006611-->With tools necessary to automate the planning, budgeting, execution, and tracking of your marketing initiatives, Oracle Marketing provides you with:<!--EOLOC ug1_OMPO1006611--></p>
<ul>
<li>
<p><!--BOLOC ug1_OMPO1006612--><B>Customer Insight</B> - With sophisticated customer management and list generation, Oracle Marketing enables you to quickly generate target lists and segments using an intuitive user interface. The easy to use Natural Query Language Builder (NLQB) lets you query for customers or prospects using a natural language while hiding data complexity; fatigue management ensures that you do not over-contact the same customers with marketing messages; and predictive analytics helps you predict customer behavior that you can leverage to produce significant increases in marketing return on investments (ROI).<!--EOLOC ug1_OMPO1006612--></p>
</li>
<li>
<p><!--BOLOC ug1_OMPO1006613--><B>Sales Alignment</B> - Oracle Marketing's leads management helps you compile and distribute viable leads so that sales professionals can follow up valuable opportunities and not just contact interactions. Additionally, support for distributing proposals and marketing material drive speedy and consistent setups and collaboration of best practices.<!--EOLOC ug1_OMPO1006613--></p>
</li>
<li>
<p><!--BOLOC ug1_OMPO1006614--><B>Marketing Insight</B> - While Oracle Marketing Home page reports and Daily Business Intelligence (DBI) for Marketing and Sales provide aggregated management level information in almost real time, operational metrics help in tracking the effectiveness of individual marketing activities.<!--EOLOC ug1_OMPO1006614--></p>
</li></ul>
</BODY>
</HTML>
<!-- Q6z5Ntkiuhw&JhsLdhtX.cg&Zp4q0b3A9f.&RQwJ4twK3pA (signum appsdocopis 1162406236 2673 Wed Nov 1 10:37:16 2006) -->Hi,
you can try to use the:
<b>ConsumerTreeListPreview</b>
layout for KM navigation ivew (or customize to your own).
This layout shows a folder tree on the left, a document list on the right. When you click on a document from the list it shows the contents of the file on the bottom of the iview.
Hope this helps,
Romano -
How to import the subtitles from m2ts file ?
Hello !!
I have a problem with subtitles. Some time ago I did Blue Ray, including subs (using import from txt file). Unfortunatelly after I deleted all project I recognized that my BD DL disc is not working, only part written on first layer can be play .
Now, I copied m2ts files directly from BD and wanted to make BD again (maybe 2 x discs). Those m2ts files has embedded subtitles -some players show it in the file properities and they can display it.
Question is:
How to import them to Adobe Encore CS5 ? Why AE are not recognize them ?
BR
MarcinIt's a multiplexed transport stream, not something editable.
To get the subtitles out, you need an (illegal) ripper that will demux the transport streams. -
How to get the filename from J2SE File adapter
In our project scenario , we are using J2EE and J2SE engine both .J2EE for mapping and J2SE for Deliveying the message .
In one senario, routing will be based on the filename .
J2SE Sender File adapter --- XI Adapter --- XI pipe line
So the File reaching to XI pipelane via J2SE File adapter--> XI adapter.
When we are using the dynamic configurator in the XI to get the filename
we are not able to get the file name becasue it is coming to XI via
XI adapter.
How to get the filename ????Hope I am clear about the problem.hi,
try this
DynamicConfiguration conf = (DynamicConfiguration) container.getTransformationParameters().get(StreamTransformationConstants.DYNAMIC_CONFIGURATION);
//obtengo la Key del FileName
DynamicConfigurationKey keyF = DynamicConfigurationKey.getName();
http://help.sap.com/javadocs/NW04/current/pi/com/sap/aii/mapping/api/DynamicConfigurationKey.html
https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/70c89607-e4d9-2910-7280-f6746e964516
/people/mohammed.zabiulla/blog/2008/03/26/have-you-ever-tried-to-determine-mail-cc-dynamically
Hope it helps
Thanks
Rodrigo
Edited by: Rodrigo Pertierra on Apr 11, 2008 9:31 AM -
How to extract the image from pdf file
Hai friends........
Is it possible to extract the images in a page from pdf file.
If so. please share with me.......
Thanks in advance,
abuIn later versions of Acrobat you can select an Image with the Select tool, then right-hand click for Save options.
------------->
It helps if you quote your exact version of Adobe Acrobat/Reader - choose [Help, About...] to find this.
Also useful: Version numbers of other software (e.g. Word) if relevant. Age of computer and amount of memory (RAM) available (r/h cllcking on 'My Computer' and choosing Properties gives you this, plus processor speed). -
Receiving a call (how to know the call from) city
Hi, I would like to know if it's possible when you receive a call to be able to know the city of the number calling from like iphone does.
thank you for you help
Solved!
Go to Solution.I've noticed that my phone doesn't do that either. I'm coming from a galaxy s2 on boost mobile. My old phone didn't do it for a while until I got an update from 4.0 to 4.1. It was then built into the operating system. So, unless you go with the recommendation of downloading an app, then I'm guessing that it won't be available..
Unless BlackBerry decides to include it in a future update.. which I'd be a fan of!
Maybe you are looking for
-
The workflow could not check out the list item.
Hi Guys, I have a workflow enabled on document library and it needs to started manually. Whenever user starts workflow manually, gets following error: "the workflow could not check out the list item. Make sure the list item is not checked out." lis
-
it is just 2-3 days this is happening and happened after the latest Firefox update. I have FF on my system for few years and I haven't installed anything new. MY system restore shows only Chrome (from 41.0.2272.101 to .118) and Firefox (from 36.0.4 t
-
MM Report - Pending GRNs for which payment not made
Hello Friends Is there any report availbale to view the pending GRNs for which payment has not been made. Best Regards Vijayakumar TVN Note: Subject line changed Edited by: Jeyakanthan A on Jun 16, 2011 2:32 PM
-
Print Terms & Conditions in the Back page in Sapscript
Hello Experts, I need your help. I have one sapscript. I want print Terms&Conditions in the back page. My Sapscript is a copy of MEDRUCK. I want: When NACHA = 1 --> Print Terms&Conditions on the reverse side of each page. When NACHA = 5 -->
-
Feature GUID for list template 10113 is not installed in the farm
I'm just using a trial of a migration product called Sharegate and it has produced the following error when i connect it to my farm "Feature GUID for list template 10113 is not installed in the farm" I've used the missing feature project from codeple