Need help on interface to store images into oracle database using forms 6i
i am using forms 6i and oracle 8i. i am able to store .jpg and other picture files into data base.now my problem is how show and store the CAD/CAM drawings using forms. can any one help me please. is higher version is providing any new facility for this purpose?
thank you
thanks for your help.
i am using client/server based application and cad/cam software was also installed on it. helper application means, the cad/cam software should provide some controls to view the drawings in other applications? am i correct.
Similar Messages
-
Help on interface to store CAD/CAM drawings into oracle database using form
i am using forms 6i and oracle 8i. i am able to store .jpg and other picture files into data base.now my problem is how show and store the CAD/CAM drawings using forms. can any one help me please. is higher version is providing any new facility for this purpose?
thank youthanks for your help.
i am using client/server based application and cad/cam software was also installed on it. helper application means, the cad/cam software should provide some controls to view the drawings in other applications? am i correct. -
Inserting Multiple Images into oracle database using JDBC
I wanted to insert multiple images into database using JDBC by reading it from the file... and i am passing photos.txt(my text file) as an input parameter... I have inserted all the values into the database except for the image part... this is my content of photos.txt file and i have copied all the images into the folder
*" C:\\photos "*
*1,in1.jpg,108,19,in-n-out*
*2,in2.jpg,187,21,in-n-out*
*3,in3.jpg,308,41,in-n-out*
*4,in4.jpg,477,52,in-n-out*
*5,in5.jpg,530,50,in-n-out*
and i want to store in1.jpg,in2.jpg,in3.jpg,in4.jpg,in5.jpg into the oracle databse using JDBC.... i have tried a lot using BLOB column.... and i have created my table as
CREATE TABLE PHOTO(
ID NUMBER NOT NULL PRIMARY KEY ,
Name BLOB,
X DOUBLE PRECISION,
Y DOUBLE PRECISION,
Tags VARCHAR2(40)
try { // for restaurant System.out.println();System.out.println();System.out.println(); System.out.print(" Creating Statement for Photo...\n"); stmt2 = con.createStatement (); stmt2.executeUpdate("delete from PHOTO"); stmt2.executeUpdate("commit"); PreparedStatement stmt3 = con.prepareStatement ("INSERT INTO PHOTO VALUES (?, ?, ?, ?, ?)"); System.out.print(" Create FileReader Object for file: " + inputFileName1 + "...\n"); FileReader inputFileReader2 = new FileReader(inputFileName1); System.out.print(" Create BufferedReader Object for FileReader Object...\n"); BufferedReader inputStream2 = new BufferedReader(inputFileReader2); String inLine2 = null; String[] tokens; // String[] imageFilenames = {"c:\\photos\\in1.jpg","c:\\photos\\in2.jpg","c:\\photos\\in3.jpg","c:\\photos\\in4.jpg","c:\\photos\\in5.jpg", // "c:\\photos\\in6.jpg","c:\\photos\\in7.jpg","c:\\photos\\in8.jpg","c:\\photos\\in9.jpg","c:\\photos\\in10.jpg","c:\\photos\\arb1.jpg","c:\\photos\\arb2.jpg", // "c:\\photos\\arb3.jpg","c:\\photos\\arb4.jpg","c:\\photos\\arb5.jpg","c:\\photos\\den1.jpg","c:\\photos\\den2.jpg","c:\\photos\\den3.jpg", // "c:\\photos\\den4.jpg","c:\\photos\\den5.jpg","c:\\photos\\hop1.jpg","c:\\photos\\hop2.jpg","c:\\photos\\hop3.jpg","c:\\photos\\hop4.jpg","c:\\photos\\hop5.jpg"}; File file = new File("C:\\photos\\in1.jpg"); \\ ( Just for example ) FileInputStream fs = new FileInputStream(file); while ((inLine2 = inputStream2.readLine()) != null) { tokens= inLine2.split(","); st2 = new StringTokenizer(inLine2, DELIM); stmt3.setString(1, tokens[0]); stmt3.setBinaryStream(2, fs, (int)(file.length())); stmt3.setString(3, tokens[2]); stmt3.setString(4, tokens[3]); stmt3.setString(5, tokens[4]); stmt3.execute(); //execute the prepared statement stmt3.clearParameters();
As i am able to enter one image file by above code in1.jpg in to the oracle database.... but i am not able to insert all the image file in to the database.....do tell me what should i do.... and can you give me the example on the basis of the above code of mine...
do reply as soon as possible..jwenting wrote:
that depends. Putting the images in BLOBs prevents the file locations stored in the database from getting out of synch with the filesystem when sysadmins decide to reorganise directory structures or "archive" "old" files that noone uses anyway.True, but it really comes down to a business decision (cost-benefit analysis). If you have the bucks, the expertise, and the time, go with the Blobs, otherwise go with the flat files. -
Issue of inserting greek characters into Oracle database using ICAN505
Hi All,
We are currently facing an issue of inserting greek characters into Oracle database using ICAN505.
We receive a file containing greek characters.The values from the file should be inserted into the database.We are reading the file using file OTD with default encoding.
The file can contain english characters too other than greek characters.
The database NLS_CHARACTERSET is AL32UTF8.
When I insert using an insert statement directly ,the values get inserted properly into the DB table.
Inserting the same values using code results in improper characters getting inserted into the table in the database.
Please help....
Thanks in advance !!Globalization forum?
Globalization Support
It works for SQL Developer, which does not depend on NLS_LANG, so I suspect a problem with your NLS settings. -
Need help to upload Excel Chinese data into Oracle
Hello
I am very new at internationalization. We are writing an application that
reads Chinese data from a Microsoft Excel file and writes it out into Oracle
8i. This is what we have done:
1. Use JDBC-ODBC driver to read the Excel data directly from .xls.
2. Write data into oracle database.
When we open Excel, we can view the Chinese characters. When we use SQL
PLus, we see only ????. When we write another servlet to retrieve the data,
it is displayed as ????. The few questions I have are:
1. How can I verify that the Chinese data has been accurately inserted into
the database?
2. Do I need to set anything special (environment variables, config files
etc) in BEA Weblogic 5.1 and Oracle 8i?
The environment we have are:
1. BEA Weblogic SP9 running on WIn NT.
2. Oracle 8i running on Solaris.
ThanksMake sure that the characters are correct in the app server after you get
them out of Oracle and before you put them into the web page. This will help
you determine if the problem is in the JDBC access to Oracle or the encoding
into the web page. Make sure that you verify that the hex values of each
character from the db test case are what you expect.
Peace,
Cameron Purdy
Tangosol Inc.
<< Tangosol Server: How Weblogic applications are customized >>
<< Download now from http://www.tangosol.com/download.jsp >>
"Bernard Ong" <[email protected]> wrote in message
news:[email protected]...
Hi Kev
1. "It doesn't work" means that I still see ??? in the database. WHen I
retrieve the data, it is still displayed as ??? in a browser.
2. Codeset to use to display should be UTF-8.
3. Charset in database server is UTF8. I did a "select * from
database_parameters" to get this value.
4. I copied the Chinese characters from Excel and pasted on Notepad. Icould
see the Chinese characters with the Chinese emulator turned on. WHen Icopy
??? from SQL*Plus and paste it into notepad, I see ???.
Presume:
1. Yes, running SQL*PLUS on BEA machine.
2. BEA machine running on WIndows 200 professional. We downloaded aChinese
emulator. WIndows 2000 is the English version.
Cheers
"Kevin Lu" <[email protected]> wrote in message
news:[email protected]...
Hi Bernard,
Please first clarify:-
1) "It doesn't work" means... cannot display the chinese character as
you
desired?
2) Which codeset that you want it to display, Chinese traditional big5?UTF-8,
i would think it's still in Java/JDBC codeset.
3) What's the charset in the database server? Get help from DBA if you
not
sure
how to obtain this information.
4) Try paste the result(select via SQL*Plus) onto Win Notepad, what's
the
outcome?
Presume:
1) you're running SQL*Plus on your BEA machine?
2) BEA machine is running on Chinese O/S or hv NJStar installed andrunning?
Let me know if i could be of further help.
-Kev
"Bernard Ong" <[email protected]> wrote:
Thanks Kev.
We had changed the registry in the BEA machine to
AMERICAN_AMERICA.UTF8.
THis was done for the Oracle registry in the BEA machine.
Unfortunately,
it
still doesn't work.
Cheers,
Bernard
"Kevin Lu" <[email protected]> wrote in message
news:[email protected]...
Hi Bernard,
I take about the same approach as you while resolving codeset
problem.
So,
first
i make sure SQL*Plus could display my desired result before proceedto
application(be
it Swing, servlet, JSP console etc..). You may try set the NLS_LANGon
your client
machine(same machine as where you run SQL*Plus) to the SAME as
database
server
character set, for instance America_American.US7ASCII. You should
able
to
see
the Chinese characters.
Hope this help with your first question. I can't help for the restanyway.
good luck!
-Kev
"Bernard Ong" <[email protected]> wrote:
Hello
I am very new at internationalization. We are writing an
application
that
reads Chinese data from a Microsoft Excel file and writes it outinto
Oracle
8i. This is what we have done:
1. Use JDBC-ODBC driver to read the Excel data directly from .xls.
2. Write data into oracle database.
When we open Excel, we can view the Chinese characters. When we useSQL
PLus, we see only ????. When we write another servlet to retrievethe
data,
it is displayed as ????. The few questions I have are:
1. How can I verify that the Chinese data has been accurately
inserted
into
the database?
2. Do I need to set anything special (environment variables, configfiles
etc) in BEA Weblogic 5.1 and Oracle 8i?
The environment we have are:
1. BEA Weblogic SP9 running on WIn NT.
2. Oracle 8i running on Solaris.
Thanks -
Help Required:How Upload Excel file Into Oracle Table Using PLSQL Procedure
Please Help , Urgent Help Needed.
Requirement is to Upload Excel file Into Oracle Table Using PLSQL Procedure/Package.
Case's are :
1. Excel File is On Users/ Client PC.
2. Application is on Remote Server(Oracle Forms D2k).
3. User Is Using Application Using Terminal Server LogIn.
4. So If User Will Use to GET_FILE_NAME() function of D2K to Get Excel File , D2k Will Try to pick File from That Remote Server(Bcs User Logind from Terminal Server Option).
5. Cannot Use Util_File Package Or Oracle Directory to Place That File on Server.
6. we are Using Oracle 8.7
So Need Some PL/SQL Package or Fuction/ Procedure to Upload Excel file on User's Pc to Oracle Table.
Please Guide me wd some Code. or with Some Pl/SQL Package, or With SOme Hint. Or any Link ....
Jus help to Sort This Issue ........
you can also write me on :
[email protected], [email protected]TEXT_IO is a PL/SQL package available only in Forms (you'll want to post in the Forms forum for more information). It is not available in a stored procedure in the database (where the equivalent package is UTL_FILE).
If the Terminal Server machine and the database machine do not have access to the file system on the client machine, no application running on either machine will have access to the file. Barring exceptional setups (like the FTP server on the client machine), your applications are not going to have more access to the client machine than the operating system does.
If you map the client drives from the Terminal Server box, there is the potential for your Forms application to access those files. If you want the files to be accessible to a stored procedure in the database, you'll need to move the files somewhere the database can access them.
Justin -
Import Raster image into oracle database
I am trying to load raster image into oracle spatial 10g. It is a tiff file. I am using Oracle Mapbuilder that comes with oc4j.
I use Tools Menu -> Import Image to import that image into an oracle table.
But I get error -
java.lang.NoSuchMethodError: javax.media.jai.RenderedOp.getNumBands()I
i am using java 1.5 and i have set path to java media library - jai_codec.jar, jai_codec_depl.jar , jai_core.jar, jai_core_depl.jar
Pl help..
Thanksooee i solved it...
i used jre 1.6 and it works fine... -
How to store image in oracle database and retrieve
Hi i want to store a image in oracle database, user will select the image and i want tht image to store in database in java/jsp can anybody help
try the following in yr app
try{
File fileObject = new File("img path");
FileInputStream fisObject = new FileInputStream(fileObject);
PreparedStatement pstmt =
conn.prepareStatement("insert into IMG_TABLE values (?,?)");
pstmt.setString(1,fileObject.getName());
pstmt.setBinaryStream(2,fisObject,(int)fileObject.length());
pstmt.executeUpdate();
catch(SQLException se)
se.printStackTrace();
catch(Exception ee)
ee.printStackTrace();
} -
How to access images stored in database using forms
i have created a table which stores images in bfile type
i would like to access the images along with other data
stored in forms.iam not able to get the image using select statement.could anyone tell me the format using which i would be able to access the image.in my impression, Oracle's samples store the BFILE images off line though if I did not remember wrong.
If you can create a form type form using form wizard based on that image table, then you may execute query to view the image. But SELECT ... INTO will not work for LOBs on form.
If off line in file system, you may try to READ_IMAGE_FILE(). -
How to store any file in database using Forms? EVEN non OLE Compliant
I have to store and retrieve any file (not only image and OLE compatilble file) in the database and retrieve it later without using Forms and email it using java stored procedure. How do I do that?
I used OLE, but the problem with this is later when I retrieve it, some OLE specific control information is also retrieved, which means the data stored is not only pure data.
In the forms, I just want to give the file name and it should store that file into the database as we do with READ_IMAGE_FILE. Is there any way of achieving this?
Thank you.
Bijay
nullPlease refer to this link:
http://www.dba-oracle.com/t_storing_insert_photo_pictures_tables.htm
Kamran Agayev A. (10g OCP)
http://kamranagayev.wordpress.com
[Step by Step install Oracle on Linux and Automate the installation using Shell Script |http://kamranagayev.wordpress.com/2009/05/01/step-by-step-installing-oracle-database-10g-release-2-on-linux-centos-and-automate-the-installation-using-linux-shell-script/] -
Insert data into oracle database using a PHP form
I'm trying to enter data into my oracle database table using a php form. When I click submit no data is added. Could someone help me please. I'm new to php/oracle thing.
NOTE: I don't have any problem connecting to the database using php.
Here is the code I'm using:
<?php
// just print form asking for name if none was entered
if( !isset($query)) {
echo "<form action=\"$uri\" method=post>\n";
echo "<p>Enter Name: ";
echo "<input type=text size=100 maxlength=200 name=data value=\"$data\">\n";
echo "<br><input type=submit name=submit value=Submit>\n";
echo "</form>\n";
exit;
// insert client's name
$query = "INSERT INTO client (name) VALUES ($data)";
// connect to Oracle
$username = "xxxx";
$paswd = "yyyyyy";
$dbstring = "(DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)".
"(HOST=patriot.gmu.edu)(PORT=1521))".
"(CONNECT_DATA=(SID=COSC)))";
$db_conn = ocilogon($username, $paswd, $dbstring);
$stmt = OCIParse($db_conn, $query);
OCIExecute($stmt, OCI_DEFAULT);
OCIFreeStatement($stmt);
OCILogoff($db_conn);
?>
Thanks for your help. I will also appreciate a better was to do it.
Tonyresumption and jer,
Sorry I cannot format the code for easy reading!
The page is submitting to itself. See action = \"$uri\". I used the same logic to enter SELECT querries into the database. It pulls and displays data back on the webpage. The code I used for this is below. Compare it with the one above for inserting data into the table.
<?php
// connect to oracle
$username = "xxxxx";
$paswd = "yyyyy";
$dbstring = "(DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)".
"(HOST=patriot.gmu.edu)(PORT=1521))".
"(CONNECT_DATA=(SID=COSC)))";
$db_conn = ocilogon($username, $paswd, $dbstring);
// username and password will be unset if they weren't passed,
// or if they were wrong
if( !isset($query)) {
// just print form asking for account details
echo "<form action=\"$uri\" method=post>\n";
echo "<p>Enter Query: ";
echo "<input type=text size=100 maxlength=200 name=query value=\"$query\">\n";
echo "<br><input type=submit name=submit value=Submit>\n";
echo "</form>\n";
exit;
// remove unwanted slashes from the query
$query = stripslashes($query);
// run the query
$stmt = OCIParse($db_conn, $query);
OCIExecute($stmt, OCI_DEFAULT);
// Open the HTML table.
print '<table border="1" cellspacing="0" cellpadding="3">';
// Read fetched headers.
print '<tr>';
for ($i = 1;$i <= ocinumcols($stmt);$i++)
print '<td class="e">'.ocicolumnname($stmt,$i).'</td>';
print '</tr>';
// Read fetched data.
while (ocifetch($stmt))
// Print open and close HTML row tags and columns data.
print '<tr>';
for ($i = 1;$i <= ocinumcols($stmt);$i++)
print '<td class="v">'.ociresult($stmt,$i).'</td>';
print '</tr>';
// Close the HTML table.
print '</table>';
OCIFreeStatement($stmt);
OCILogoff($db_conn);
?> -
Insert into Oracle Database using C#
Hi Everyone,
I am trying to take data from text box and list box and then insert them to Oracle database:
Text box data:
Oracle = EMPLOYEE_NAME
C# = tbEmployeeName
List box data:
Oracle = EMPLOYEE_GENDER
C# = lbEmployeeGender
Here is my code in C#, can you guys help me with insert statement:
string oradb = "Data Source= oraDB;User Id=sm;Password=mypassword;";
OracleConnection conn = new OracleConnection(oradb);
conn.Open();
OracleCommand cmd = new OracleCommand();
cmd.Connection = conn;
cmd.CommandText = "Insert into USER.EMPLOYEE VALUES (tbEmployeeName.Text, lbEmployeeGender.Text)";
int rowsUpdated = cmd.ExecuteNonQuery();
if (rowsUpdated == 0)
MessageBox.Show("Record not inserted");
else
MessageBox.Show("Success!");
conn.Dispose();
Thanks!989630 wrote:
Hi Everyone,
I am trying to take data from text box and list box and then insert them to Oracle database:
Text box data:
Oracle = EMPLOYEE_NAME
C# = tbEmployeeName
List box data:
Oracle = EMPLOYEE_GENDER
C# = lbEmployeeGender
Here is my code in C#, can you guys help me with insert statement:
string oradb = "Data Source= oraDB;User Id=sm;Password=mypassword;";
OracleConnection conn = new OracleConnection(oradb);
conn.Open();
OracleCommand cmd = new OracleCommand();
cmd.Connection = conn;
cmd.CommandText = "Insert into USER.EMPLOYEE VALUES (tbEmployeeName.Text, lbEmployeeGender.Text)";
int rowsUpdated = cmd.ExecuteNonQuery();
if (rowsUpdated == 0)
MessageBox.Show("Record not inserted");
else
MessageBox.Show("Success!");
conn.Dispose();
Thanks!Hi,
You'll want to read up on using parameters (also known as bind variables) - these are critical for scalability in an OLTP-type system and helping guard against SQL Injection attacks. There's many sources out there, but here's a link to the Parameter Binding section in the ODP.NET Developer's Guide which is probably a good thing to become familiar with:
http://docs.oracle.com/cd/E11882_01/win.112/e23174/featOraCommand.htm#i1007242
Here's your sample using bind variables:
string oradb = "Data Source= oraDB;User Id=sm;Password=mypassword;";
OracleConnection conn = new OracleConnection(oradb);
conn.Open();
OracleCommand cmd = new OracleCommand();
cmd.Connection = conn;
// Perform insert using parameters (bind variables)
cmd.CommandText = "Insert into USER.EMPLOYEE VALUES (:1, :2)";
// Here's one way to use parameters aka bind variables:
// Create parameters to hold values from front-end
cmd.Parameters.Add(new OracleParameter("1",
OracleDbType.Varchar2,
tbEmployeeName.Text,
ParameterDirection.Input));
cmd.Parameters.Add(new OracleParameter("2",
OracleDbType.Varchar2,
lbEmployeeGender.Text,
ParameterDirection.Input));
int rowsUpdated = cmd.ExecuteNonQuery();
if (rowsUpdated == 0)
MessageBox.Show("Record not inserted");
else
MessageBox.Show("Success!");
conn.Dispose();
// don't forget to perform any clean-up as necessaryNote that I've just typed this into a text editor and not verified, so please excuse any typos you may find.
Also, I've allowed the default of OracleCommand.BindByName=false as I prefer that, though others certainly prefer setting it to "true". See the docs for what this means if you are not sure.
Regards,
Mark -
Unable to insert rows into ORACLE database using ABAP code
Hai,
I am facing problem while creating a table in Oracle database with 15 attributes in a table. To create a table I am using the classes:
cl_sql_connection -
> to create the connection
cl_sql_statement -
> to execute the query
This I used by reffering the SAP program ADBC_DEMO. Without any trouble I am able to create a Table with 6 attributes by following the same procedure in ABCD_DEMO program but the same is not working for the table with 15 attributes .
Please help me.
Regards,
SwethaHai,
here is my code.
DATA: V_con_name TYPE dbcon-con_name,
con_ref TYPE REF TO cl_sql_connection,
sqlerr_ref TYPE REF TO cx_sql_exception,
c_tabname TYPE string VALUE `TO_DETAILS`,
c_coldefs TYPE string.
DATA: IT_ORA LIKE ZVOP_X_ORA_UPDATE OCCURS 0 WITH HEADER LINE.
V_CON_NAME = 'TVL-DSS-01'.
concatenate '(LGNUM CHAR(3) primary key,'
'TANUM VARCHAR2(10),'
'FLAG CHAR(1),'
'BDATU timestamp(3),'
'TAPOS VARCHAR2(4),'
'MATNR CHAR(18))'
'VLQNR VARCHAR2(10),'
'VLPLA CHAR(10),'
'VLBER CHAR(3),'
'NLPLA CHAR(10),'
'NLBER CHAR(3),'
'VDATE DATE(3) ,'
'BNAME CHAR(12),'
'VTIME DATE(4),'
'PROTYPEFLAG CHAR(1),'
'PROCOMFLAG CHAR(1))'
into c_coldefs separated by space .
TRY.
PERFORM: CONNECT USING V_CON_NAME CON_REF,
CREATE_TABLE USING con_ref c_tabname c_coldefs.
CATCH cx_sql_exception INTO sqlerr_ref.
TB_ERROR-MESSAGE = SQLERR_REF->SQL_MESSAGE.
APPEND TB_ERROR. CLEAR TB_ERROR.
ENDTRY.
form create
form CONNECT using p_con_name TYPE dbcon-con_name
p_con_ref TYPE REF TO cl_sql_connection
RAISING cx_sql_exception.
p_con_ref = cl_sql_connection=>get_connection( p_con_name ).
endform. " CONNECT
form create
form CREATE_TABLE USING p_con_ref TYPE REF TO cl_sql_connection
p_tabname TYPE string
p_coldefs TYPE string
RAISING cx_sql_exception.
DATA:
l_sqlerr_ref TYPE REF TO cx_sql_exception,
l_stmt TYPE string,
l_stmt_ref TYPE REF TO cl_sql_statement.
create a statement object
l_stmt_ref = p_con_ref->create_statement( ).
create the statement string
CONCATENATE
'create table' p_tabname p_coldefs
INTO l_stmt SEPARATED BY space.
execute the DDL command; catch the exception in order to handle the
case if the table already exists
TRY.
l_stmt_ref->execute_ddl( l_stmt ).
CATCH cx_sql_exception INTO l_sqlerr_ref.
IF l_sqlerr_ref->dbobject_exists = 'X'
OR l_sqlerr_ref->internal_error = 1024.
table already exists => drop it and try it again
PERFORM:
drop_table USING p_con_ref p_tabname,
create_table USING p_con_ref p_tabname p_coldefs.
ELSE.
RAISE EXCEPTION l_sqlerr_ref.
ENDIF.
ENDTRY.
endform. " CREATE_TABLE
please do help me
Regards,
Swetha -
Need Help - Can't Import ANY Images into LR4.4 Since OS Upgrade
I can't import ANY images to LR 4.4 since upgrading my Mac OS to Mountain Lion 10.8.3 this past week. I downloaded LR5 Beta and all works well. I deleted LR5 Beta to see if it was conflicting with LR4.4 somehow and rebooted. Still no change. I can't import from my card reader (that says it can't even read the files) or from a location on my hard drive. I am beyond lost and frustrated.
The error message for importing is "Could not copy a file to requested location."
I need ideas. I am afraid to deleted and reinstall as I don't want to lose all my folders within. I looked all over the web and can't figure it out.
If you need any other info, please let me know. I am hopeful that someone can help me.I added LR5 again and that works perfectly, but LR4 is still not working properly. I opened the preferences and catalog settings to compare...and they all look the same. I am beyond baffled. I don't plan on dropping more money for LR5, so I need LR4 to get back to working properly.
-
Needed help in: how to import image in InDesign Server using Java Code
New to InDesign Server.
I am not been able to import image to document.
I tried to import image using the sample snippets "PlaceTextFileInFrame.java".
modified the line:
String placefilepath = "C:\\placeFile.txt";
to
String placefilepath = "C:\\Image.jpg";
myTextFrame.place(placefilepath);
Is this the correct way to import image or there is another solution.
1.The image gets imported but i am getting blur image(Zoomed image).
2.The image gets imported to its original image width & height.
3.I need to know how to set the image width & size.My Requirement is-- I ve to connect to msn search page in order retrieve the result set from msn search. The same code which I do pasted below is working for GOOGLE n YAHOO with minor changes.But not for MSN.., Can any one help me.
I've pasted the code for msn..,
import java.io.*;
import java.net.*;
public class File {
public static void main(String[] args) throws IOException {
Socket s = new Socket("search.live.com", 80);
String query = "java";
PrintStream p = new PrintStream(s.getOutputStream());
p.print("GET /results.aspx?q=" + query);
p.print("User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1) Gecko/20061010 Firefox/2.0\r\n");
p.print("Connection: close\r\n\r\n");
InputStreamReader in = new InputStreamReader(s.getInputStream());
BufferedReader buffer = new BufferedReader(in);
String line;
while ((line = buffer.readLine()) != null) {
System.out.println(line);
Edited by: Lijo_Java on Jul 13, 2008 9:03 PM
Maybe you are looking for
-
Java Web Start not working with Proxy
I have Java Web Start program not listening to proxy settings. It tries to access localhost using our proxy settings, but with no user name or password. I'm wondering if Java Web Start has proxy settings somewhere. I'm not sure since when we disable
-
How to use HTTPS with JSSE URLConnection in servlet
Hi, I have a servlet that calls another servlet using the URLConnection class. This seems to work very well if I am using http. However when trying to call it using https using JSSE I get the following error: "javax.net.ssl.SSLHandshakeException: unt
-
CD Drive Malfuntioning Since 7.5 Upgrade
Since upgrading my iTunes to version 7.5, every audio CD I play sounds like it skips, and sounds the same way after being ripped into iTunes. I tried that same CD using Micrsoft Media Player and it works fine, and tried a DVD movie in same drive and
-
Question About Sharing Apps Between My iPhone and My Wife's iPhone
Hi, I have a question about downloading apps to my iPhone. I ordered two iPhone 3g's - one for my wife and one for me, and I've discovered that when I download an app (even free ones) on my iPhone and then later sync it to iTunes, my wife cannot put
-
Steps required in development of HFM 9.3.1 application
Hi All, Can anyone let me know about the steps required to develop an application in HFM 9.3.1......Bcoz i am a fresher ,recently joined a company as a developer but want to migrate to HFM.......SO PLEASE TELL ME ABOUT 1- WHAT TYPE OF DATA WILL BE PR