Using the QUERY parameter in exp/expdp
Hi, I've faced a nite last question.IM currently using Oracle 10 g (10.2.0.4) OS - MS Windows Server 2003
I want a dump of tables to export multiple schemas. say (acb.m1, pqr.b2, xyz.b1)
Each table has a minimum lines of 2,000,000,
And I want to just the initials 10 rows in each table of export
Is it possible that I can do this...
Please answer.
Thanks in advance
Export tables in multiple schemas is not supported in Data Pump until 11.1.0.7. So if you're on 10g, you will need to run multiple commands expdp. For only 10 lines of each table, use the query parameter
Query = "where rownum"<>
This will apply to all the tables you export.
I hope this helps.
Dean
Published by: Dean WINS January 30, 2012 08:42
Tags: Database
Similar Questions
-
Hi all
I need to export a table with the query clause = "" where rownum < 100 ' "
His works well, but the extraction of all columns.
But I need only selective columns.
Is it possible to export the follwing recordsSelect some_columns from table where rownum < 100
how with exp util?
DB version 10.2.0.4
AIX OPERATING SYSTEM
Thank youYou can not specify columns, only where clause may be specified with exp/expdp.
generate instructions insert with the help of select instead then.
Or if you need to import this data into another database - create link db and just do insert by it. -
DataPump the QUERY parameter with string values? -SOLVED
All,
I'm trying to specify a query to the datapump API parameter but can't seem to get my correct single/double quotes so that it can work. I can successfully use the QUERY parameter with something like QUERY = table: '"number_column = 6" ' but NOT with something like QUERY = table:'"string_column ="value"" "
I tried different versions of the single/double quotes, but all fails with slightly different errors. Someone at - it an example where a string value is used with success?
Thanks in advance. Oracle 10.2.0.3.0 - AIX 5.3
So after reading some other reviews on another thread - I tried this and it worked:
QUERY = table:------"where string_column = 'value\' \' \
Looks like you have escape all single/double quotation marks for this parameter
Published by: potter_geek on August 31, 2009 10:47Hello
Use the parameter file or if you run expdp command-line use escape character '-' (backslash) in this case.
Concerning
Anurag Tibrewal. -
Problem in the export using the QUERY functionality
Problem in the export using the QUERY functionality
I'm trying to export some rows in a table using the query functionality
and I have some errors... I'm using the syntax is
system@orcl QUERY = scott.emp expdp: '"WHERE emp_no = 123455" '
DIRECTORY = data_pump_dir DUMPFILE = data_pump.dmp
LOGFILE = data_pump_12345.log INDEX = n
Can someone tell me please the problem with that statement
I also tried to use the simple export
exp file system@orcl = orcl_export.dmp log = orcl_export.log
tables = Scott.EMP index = QUERY = n------"WHERE emp_no\ = 123455\"
and this error
EXP-00008: ORACLE error 904
ORA-00904: identify invalid
My os is Solaris
Please let me know what the problemHello
Try to create parfile and use that, otherwise, you will need to escape each clause correctly to run exp or expdp successfully.
test.par
tables=emp query="WHERE emp_no=123455" or tables=myobjects query="WHERE owner='SYS'" $> exp username/password parfile=test.par Export: Release 10.2.0.1.0 - Production on Thu Mar 19 10:17:48 2009 Copyright (c) 1982, 2005, Oracle. All rights reserved. Connected to: Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Production With the Partitioning, OLAP and Data Mining Scoring Engine options Export done in WE8MSWIN1252 character set and AL16UTF16 NCHAR character set About to export specified tables via Conventional Path ... . . exporting table MYOBJECTS 22650 rows exported Export terminated successfully without warnings.
Concerning
Published by: OrionNet on March 19, 2009 10:21
-
Error exporting Oracle on the QUERY parameter
Hi all
I would like to ask for help.
This is my environment:
OS: Linux 5.4 32-bit
DB: Oracle 10.2.0.4
Here's what I would do:
Export the selected lines of SH. Table SALES using the query:
SQL > select * from sh.sales
where to_date(time_id,'DD-MON-RR:HH24:MI:SS') = to_date('28-DEC-01:00:00:00','DD-MON-RR:HH24:MI:SS');
My parfile is:
UserID = ' oracle/sys as sysdba'
buffer = 10000000
file = mysales148.dmp
Journal = mysales148.log
TABLES is sh. MySales
Query = "(où to_date(time_id,\'DD\-MON\-RR:HH24:MI:SS\')=\to_date(\'28\-DEC\-01:00:00:00\',\'DD\-MON\-RR:HH24:MI:SS\')" "
RecordLength = 65535
Statistics = none
When I run the script, I get this error:
[oracle@shaoran selective_export] $ exp parfile = exp_mysale.par
Export: Release 10.2.0.1.0 - Production the game 3 Feb 16:57:08 2011
Copyright (c) 1982, 2005, Oracle. All rights reserved.
Connected to: Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Production
With partitioning, OLAP and Data Mining options
Export in US7ASCII and AL16UTF16 NCHAR character set
Server uses WE8ISO8859P1 (possible character set conversion) character set
About to export specified tables by conventional means...
Current user has changed to SH
. . MYSALES table export
EXP-00056: ORACLE 911 error encountered
ORA-00911: invalid character
Export completed successfully with warnings.
Hope to hear from you soon.
Thank you very much!First of all,
export NLS_LANG=AMERICAN_AMERICA.WE8ISO8859P1
It is probably the cause of your problem if you have unusual characters in your data.
If this isn't the case, you do not have these "------" in your QUERY. Since you're using parfile, just go with what you would do in sqlplus:
query="where time_id=to_date('28-DEC-01:00:00:00','DD-MON-RR:HH24:MI:SS')"
-
DataPump import by using the query
Hello
I need to import data by filtering using the query. can anyone help?
Thank youHello
example ofexpdp HR/hr = emp QUERY:'"WHERE dept_id > 10 AND sal > 10000"' NOLOGFILE = y DIRECTORY = dpump_dir1 DUMPFILE = exp1.dmp
Impdp HR/hr DIRECTORY = dpump_dir1 DUMPFILE = expfull.dmp QUERY = departments:'WHERE department_id «»< 120"'="" nologfile="">
See this link
http://download.Oracle.com/docs/CD/B13789_01/server.101/b10825/dp_import.htm
-
Syntax for taking export with the "Query" parameter
Hi all
Please help me about the syntax for export with the query parameter takingHello
exp file=d:\exp.dmp log=d:\exp.log tables=scott.emp query='where empno=10' exp file=d:\exp.dmp log=d:\exp.log tables=scott.emp query='where ename='''SCOTT''
Salman
-
IMPDP | Possible using the query option
HI PPL,
I wanted to know if IMPDP is possible by using the query option, as I took full expdp dump of the mentioned table and want to import only select lines.
Impdp arup/arup directory = demo_dir dumpfile = employees.dmp
Query = employees:------"" where salary\ > 10000\ order of salary "tables used ="
version: 10 gr 2
platform: UNIX
concerningObviously, it will be slow if you are using the query option, because IMPDP must import only the data that meets the criteria; It of why we export only limited data (one or two tables as needed) and import them completely.
Concerning
Girish Sharma -
Inserting data by using the query
Hello
In a book, I read the Sub statement:
Inserting data by using the query (DML)
If the user wants to transfer data from a table to another table in the insert statement are used independently of data that can be processed or not processed form.
Can someone clarify what is the significance of this (processed or unprocessed form).
Thank you.
Why don't you ask the author of the book.
How can we know what the author means when you take a quote out of context and don't provide any reference so that we can see exactly what is shown to you.
I can only imagine that they are referring to data that are queried directly, "like what", another table, or who was interrogated and manipulated before be inserted.
-
the search for empty cells by using the query designer
Hello
I'm trying to exclude empty cells in a field (by using the Query Builder), and I did:
xDocumentSource < match > "CDL".
< AND >
< NOT > (xRelatedMsgid < match > "" "")
but it does not work. I tried "NULL", but it does not work either. Could someone tell me how to do it (or where I can find examples of queries).
Kind regards
Iwona
https://blogs.Oracle.com/Kyle/entry/searching_for_null_values_ucm
-
List of virtual machines in TIME using the query service
Someone been able to use the query service to produce a range of virtual machines in a paralytic? I don't see all the attributes on the VclQueryadminVMField that reference the vApp.
I log in the org of system.
Any help would be appreciated.
Name of the action: getVAppVms
Entry: VAPP (vCloud:VApp)
Output: Array / vCloud:VM
Script:
var vcdHost = vApp.getHost(); var vms = new Array(); var queryService = vcdHost.getQueryService(); expression = new VclExpression(VclQueryVMField.CONTAINER, vApp.getReference().href, VclExpressionType.EQUALS); filter = new VclFilter(expression); params = new VclQueryParams(); params.setFilter(filter); var resultSet = queryService.queryRecords(VclQueryRecordType.VM, params); while (resultSet != null) { var records = resultSet.getRecords(new VclQueryResultVMRecord()); System.log(records.length + " VM records found"); for each (var record in records) { var vmRef = new VclReference(); vmRef.href = record.href; vmRef.name = record.name; vmRef.type = record.type; vms.push(vcdHost.getEntityByReference(VclEntityType.VM, vmRef)); } resultSet = resultSet.getNextPage(); } return vms;
This is what made our team (more precisely - Christophe)
-
Not able to change the password by using the query.
Select APPS.fnd_web_sec.change_password ('username', 'password') 'RES' double;
Can someone tell why and what privileges and subsidies have flexibility to the user non-apps while it can change the password using fnd_web_sec.change_password.
Concerningthe information above does not solve my problem, I get the message
Because you do not have permission on all objects that are referenced by the API (see below).
Select FND_WEB_SEC. CHANGE_PASSWORD ('MARSHAD', 'mohammad @123') "RES" of the double
*
ERROR on line 1:
ORA-00942: table or view does not exist
ORA-06512: at the 'APPS '. FND_CORE_LOG', line 25
ORA-06512: at the 'APPS '. FND_CORE_LOG', line 432
ORA-06512: at the 'APPS '. FND_PROFILE', line 110
ORA-06512: at the 'APPS '. FND_SSO_MANAGER", line 227
ORA-06512: at the 'APPS '. FND_WEB_SEC', line 1425
ORA-06512: at line 1...
can you please list me what are the grants and other Jules Destrooper I should give to a user so that he can change password.
I don't have the list of objects and you should get yourself by consulting the site code and eTRM API.
by changing the DDT in the user non-apps after the grant, will, it may be able to change the password.please tell this syntax is correct or not.
Select applications. FND_WEB_SEC. CHANGE_PASSWORD ('user', 'pwd') "RES" of the doubleWhat is the point of using 'FND_WEB_SEC. CHANGE_PASSWORD' and not FNDCPASS or FND_USER_PKG API?
Thank you
Hussein -
By using the query table data pump
I am trying to perform an export of data pump on a table by using a query in a parfile and I'm getting a strange behavior. The database version is 10.2.0.4.3 and the AIX 5.3 operating system. The query looks like this.
QUERY = "POSDECLARATIONQUEUE:where SESSIONID in (select"B.SESSIONID"from POSACCOUNT A, POSDECLARATIONQUEUE B, POSDECLARATIONSESSION C, where"B.SESSIONID"="C.ID"and"C.ACCOUNTID"= 'A.ID' and 'Inform' = '10252')" "
This works, but gets 0 rows. If I run the query against the instance in a session of SQLPlus as below then I get 0 rows returned.
Select * from POSDECLARATIONQUEUE where SESSIONID in (select "B.SESSIONID" from POSACCOUNT A, POSDECLARATIONQUEUE B, POSDECLARATIONSESSION C, where "B.SESSIONID" = "C.ID" AND "C.ACCOUNTID" = 'A.ID' and 'Inform' = '10252');
If I take the columns all about apostrophes in the query on the Forum with SQLPlus, I get over 2000 rows returned.
SQL > select count (*) in the POSDECLARATIONQUEUE where SESSIONID in (select B.SESSIONID from POSACCOUNT A, POSDECLARATIONQUEUE B, POSDECLARATIONSESSION C where B.SESSIONID = C.ID and C.ACCOUNTID = A.ID and inform = 10252);
COUNT (*)
----------
2098
If I remove the apostrophes in the query parfile then I get the following error in data pump export.
DEU-00014: invalid value for the parameter, "schemas".
The PATTERNS option is not specified in parfile him and the TABLES option specifies that the table POSDECLARATIONQUEUE.
Can someone help with this, I can't seem to be able to get the syntax just to work within data pump.
Kind regards.
Graeme.
Published by: user12219844 on April 14, 2010 03:34It seems that your query can be a little wrong:
That's what you have:
QUERY = "POSDECLARATIONQUEUE:where SESSIONID in (select"B.SESSIONID"from POSACCOUNT A, POSDECLARATIONQUEUE B, POSDECLARATIONSESSION C, where"B.SESSIONID"="C.ID"and"C.ACCOUNTID"= 'A.ID' and 'Inform' = '10252')" "
That's what I would have thought it should look like:
QUERY = POSDECLARATIONQUEUE: "where SESSIONID in (select B.SESSIONID from POSACCOUNT A, POSDECLARATIONQUEUE B, POSDECLARATIONSESSION C where B.SESSIONID = C.ID and C.ACCOUNTID = A.ID and inform = 10252).
You want to double "around the full query and you have not need single ' around all =." The single ' treat these values as strings and he said
"B.SESSIONID" = "C.ID".
the B.SESSIONID string is the string C.IDIn your query you used in sql has been
B.SESSIONID = C.ID
that said, it is that the B.SESSIONID stored value equal to the value stored at C.ID
Which is what you want.
Dean
-
Slow index by using the query. Fast with full table Scan.
Salvation;
(Thanks for the links)
Here's my question correctly formatted.
The query:
Works on 32 seconds!SELECT count(1) from ehgeoconstru ec where ec.TYPE='BAR' AND ( ec.birthDate <= TO_DATE('2009-10-06 11:52:12', 'YYYY-MM-DD HH24:MI:SS') ) and deathdate is null and substr(ec.strgfd, 1, length('[CIMText')) <> '[CIMText'
Same query, but with an extra where clause:
This is 400 seconds.SELECT count(1) from ehgeoconstru ec where ec.TYPE='BAR' and ( (ec.contextVersion = 'REALWORLD') --- ADDED HERE AND ( ec.birthDate <= TO_DATE('2009-10-06 11:52:12', 'YYYY-MM-DD HH24:MI:SS') ) ) and deathdate is null and substr(ec.strgfd, 1, length('[CIMText')) <> '[CIMText'
It should return data from a table, given the conditions.
The database version is Oracle9i Release 9.2.0.7.0
These are the parameters relevant for the optimizer:
Here is the output of the PLAN to EXPLAIN for the first quick query:SQL> show parameter optimizer NAME TYPE VALUE ------------------------------------ ----------- ------------------------------ optimizer_dynamic_sampling integer 1 optimizer_features_enable string 9.2.0 optimizer_index_caching integer 99 optimizer_index_cost_adj integer 10 optimizer_max_permutations integer 2000 optimizer_mode string CHOOSE SQL>
Here is the output of the EXPLAIN of PLAN for slow queries:PLAN_TABLE_OUTPUT -------------------------------------------------------------------------------- -------------------------------------------------------------------------------- | Id | Operation | Name | Rows | Bytes | Cost | -------------------------------------------------------------------------------- | 0 | SELECT STATEMENT | | | | | | 1 | SORT AGGREGATE | | | | | |* 2 | TABLE ACCESS FULL | EHCONS | | | | -------------------------------------------------------------------------------- Predicate Information (identified by operation id): --------------------------------------------------- PLAN_TABLE_OUTPUT -------------------------------------------------------------------------------- 2 - filter(SUBSTR("EC"."strgfd",1,8)<>'[CIMText' AND "EC"."DEATHDATE" IS NULL AND "EC"."BIRTHDATE"<=TO_DATE('2009-10-06 11:52:12', 'yyyy -mm-dd hh24:mi:ss') AND "EC"."TYPE"='BAR') Note: rule based optimization
The TKPROF output for this slow statement is:PLAN_TABLE_OUTPUT -------------------------------------------------------------------------------- | | | 1 | SORT AGGREGATE | | | | | |* 2 | TABLE ACCESS BY INDEX ROWID| ehgeoconstru | | | | |* 3 | INDEX RANGE SCAN | ehgeoconstru_VSN | | | | PLAN_TABLE_OUTPUT -------------------------------------------------------------------------------- Predicate Information (identified by operation id): --------------------------------------------------- 2 - filter(SUBSTR("EC"."strgfd",1,8)<>'[CIMText' AND "EC"."DEATHDATE" IS NULL AND "EC"."TYPE"='BAR') PLAN_TABLE_OUTPUT -------------------------------------------------------------------------------- 3 - access("EC"."CONTEXTVERSION"='REALWORLD' AND "EC"."BIRTHDATE"<=TO_DATE('2 009-10-06 11:52:12', 'yyyy-mm-dd hh24:mi:ss')) filter("EC"."BIRTHDATE"<=TO_DATE('2009-10-06 11:52:12', 'yyyy-mm-dd hh24: mi:ss')) Note: rule based optimization
Published by: PauloSMO on November 17, 2009 04:21TKPROF: Release 9.2.0.7.0 - Production on Tue Nov 17 14:46:32 2009 Copyright (c) 1982, 2002, Oracle Corporation. All rights reserved. Trace file: gen_ora_3120.trc Sort options: prsela exeela fchela ******************************************************************************** count = number of times OCI procedure was executed cpu = cpu time in seconds executing elapsed = elapsed time in seconds executing disk = number of physical reads of buffers from disk query = number of buffers gotten for consistent read current = number of buffers gotten in current mode (usually for update) rows = number of rows processed by the fetch or execute call ******************************************************************************** SELECT count(1) from ehgeoconstru ec where ec.TYPE='BAR' and ( (ec.contextVersion = 'REALWORLD') AND ( ec.birthDate <= TO_DATE('2009-10-06 11:52:12', 'YYYY-MM-DD HH24:MI:SS') ) ) and deathdate is null and substr(ec.strgfd, 1, length('[CIMText')) <> '[CIMText' call count cpu elapsed disk query current rows ------- ------ -------- ---------- ---------- ---------- ---------- ---------- Parse 1 0.00 0.00 0 0 0 0 Execute 1 0.00 0.00 0 0 0 0 Fetch 2 0.00 538.12 162221 1355323 0 1 ------- ------ -------- ---------- ---------- ---------- ---------- ---------- total 4 0.00 538.12 162221 1355323 0 1 Misses in library cache during parse: 0 Optimizer goal: CHOOSE Parsing user id: 153 Rows Row Source Operation ------- --------------------------------------------------- 1 SORT AGGREGATE 27747 TABLE ACCESS BY INDEX ROWID OBJ#(73959) 2134955 INDEX RANGE SCAN OBJ#(73962) (object id 73962) ******************************************************************************** alter session set sql_trace=true call count cpu elapsed disk query current rows ------- ------ -------- ---------- ---------- ---------- ---------- ---------- Parse 0 0.00 0.00 0 0 0 0 Execute 1 0.00 0.02 0 0 0 0 Fetch 0 0.00 0.00 0 0 0 0 ------- ------ -------- ---------- ---------- ---------- ---------- ---------- total 1 0.00 0.02 0 0 0 0 Misses in library cache during parse: 0 Misses in library cache during execute: 1 Optimizer goal: CHOOSE Parsing user id: 153 ******************************************************************************** OVERALL TOTALS FOR ALL NON-RECURSIVE STATEMENTS call count cpu elapsed disk query current rows ------- ------ -------- ---------- ---------- ---------- ---------- ---------- Parse 1 0.00 0.00 0 0 0 0 Execute 2 0.00 0.02 0 0 0 0 Fetch 2 0.00 538.12 162221 1355323 0 1 ------- ------ -------- ---------- ---------- ---------- ---------- ---------- total 5 0.00 538.15 162221 1355323 0 1 Misses in library cache during parse: 0 Misses in library cache during execute: 1 OVERALL TOTALS FOR ALL RECURSIVE STATEMENTS call count cpu elapsed disk query current rows ------- ------ -------- ---------- ---------- ---------- ---------- ---------- Parse 0 0.00 0.00 0 0 0 0 Execute 0 0.00 0.00 0 0 0 0 Fetch 0 0.00 0.00 0 0 0 0 ------- ------ -------- ---------- ---------- ---------- ---------- ---------- total 0 0.00 0.00 0 0 0 0 Misses in library cache during parse: 0 2 user SQL statements in session. 0 internal SQL statements in session. 2 SQL statements in session. ******************************************************************************** Trace file: gen_ora_3120.trc Trace file compatibility: 9.02.00 Sort options: prsela exeela fchela 2 sessions in tracefile. 2 user SQL statements in trace file. 0 internal SQL statements in trace file. 2 SQL statements in trace file. 2 unique SQL statements in trace file. 94 lines in trace file.
Published by: PauloSMO on November 17, 2009 07:07
Published by: PauloSMO on November 17, 2009 07:38 - title changed to be more correct.Although your optimizer_mode is choosing, it seems that there are no statistics collected on ehgeoconstru. The absence of estimated costs and estimated row counts of each of the stages of the plan and the "Note: optimization based on rules" at the end of these two plans would tend to confirm this.
Optimizer_mode choose means that if statistics are collected then it will use the CBO, but if no statistic is present in any of the tables in the query, the optimizer to rule will be used. The RBO tends to be happy in the best of the index case. I guess the index ehgeoconstru_VSN contextversion as the main column and also includes the date of birth.
You can either gather statistics on the table (if all other tables have statistics) using dbms_stats.gather_table_stats, or suggest the query to use a full scan instead of index. Another solution would be to apply a function or an operation against the contextversion to prevent the use of the index. something like this:
SELECT COUNT(*) FROM ehgeoconstru ec WHERE ec.type='BAR' and ec.contextVersion||'' = 'REALWORLD' ec.birthDate <= TO_DATE('2009-10-06 11:52:12', 'YYYY-MM-DD HH24:MI:SS') and deathdate is null and SUBSTR(ec.strgfd, 1, LENGTH('[CIMText')) <> '[CIMText'
or maybe UPPER (ec.contextVersion) so that would not change the rows returned.
John
-
Download the image to the server using the message parameter.
Hello experts,
I want to download an image on the server by using the post method with parameter alongsome such as file name, status, tag, deviceid, name of the device.
Server taking some as windows credentials. I connect a .html page which, in my url, it must be all the parameter and in action, he goes to the .php file and it image upload server-side.
I use this code, I have my tent for the last 3 days but I get no success.
Please help me...
My code is: -.
private String httpConn (String file) {HttpConnection conn = null; OutputStream os = null; InputStream is = null; String url = ""; int respcode = 0; path of the Web service from which image will be transferred. URL = "" http://usertest[email protected]/admin/image_upload_iphone_app.html ";" Try {conn = (HttpConnection) Connector.open (url); conn.setRequestMethod (HttpConnection.POST); String name = "file:///" + file; FileConnection fc = (FileConnection) Connector.open (name); is = FC.openInputStream (); / * byte [] imgData = IOUtilities.streamToBytes (is); is. Read (imgData); * / byte [] ReimgData = IOUtilities.streamToBytes (is); Resize Image according to setting. Byte [] imgData = reszieImage (ReimgData); is. Read (imgData); String limit = "---14737809831466499882746641449"; String body = ""; name of the file... body = "\r\n--" + limit + "\r\n"; body & = "Content-Disposition: form-data; Name=\"filename\"\r\n\r\n"+"test.jpg '; body += "\r\n--" + limit + "\r\n"; tag... body = "\r\n--" + limit + "\r\n"; body & = "Content-Disposition: form-data; name =-"tag\" \r\n\r\n "+ 'tag'; body += "\r\n--" + limit + "\r\n"; status... body = "\r\n--" + limit + "\r\n"; body & = "Content-Disposition: form-data; name =-"status\" \r\n\r\n "+ 'status'; body += "\r\n--" + limit + "\r\n"; Device ID... body = "\r\n--" + limit + "\r\n"; body & = "Content-Disposition: form-data; name =-"deviceid\" \r\n\r\n "+"deviceid"; body += "\r\n--" + limit + "\r\n"; DeviceModel... body = "\r\n--" + limit + "\r\n"; body & = "Content-Disposition: form-data; name =-"devicemodel\" \r\n\r\n "+"devicemodel"; body += "\r\n--" + limit + "\r\n"; image... body = "\r\n--" + limit + "\r\n"; body & = "Content-Disposition: form-data; name =------'URL '; filename=\""+"test.jpg"+"\r\n '; body & = "" Content-Type: application/octet-stream\r\n\r\n ";" body & = new String (imgData); body += "\r\n--" + limit + "-" + "\r\n"; conn.setRequestProperty ("Content-Type", "multipart/form-data;" + limit); OS = conn.openOutputStream (); OS. Write (Body.GetBytes ()); OS. Close(); / * / / SEND the IMAGE int index = 0; int size = 1024; {System.out.println ("write:" + index);} If ((index+size) > imgData.Length) {size = imgData.length - index ;} os.write (imgData, index, size);} size of the index of +=; } While (index
{0) {}} while(len>0); * / respcode = conn.getResponseCode (); } catch (Exception e) {e.printStackTrace () ;} Finally {//System.out.println ("closely connected"); try {os.close () ;} catch (Exception e) {} try {is.close () ;} catch (Exception e) {} try {() conn.close ;} catch (Exception e) {}} return Integer.toString (respcode);}}} }
Concerning
Pankaj Perron.
It is a solution guys: -.
see...
http://wiki.Forum.Nokia.com/index.php/HTTP_Post_multipart_file_upload_in_Java_ME
Maybe you are looking for
-
Photo of Webcam Satellite C660 - 24G: is not clear
Hi all I have 3 laptops (c660 - 24G) and webcams are like this picture http://www.m5zn.com/uploads2/2011/10/18/photo/1018110010587xijtpg1i.jpg I installed the new drivers and tried win7 (both 32 & 64-bit) and I tried the portable three and the same p
-
How can I report an unpleasant answer here?
Any help will be appreciated
-
What version of Windows Media player I have?
I just got Windows 7 so I have to assume, I have the latest version of Windows Media Player, but it does not resemble picutres I see with Windows Media Player 11 and now I see someone talking about the Version 12?How do I know what version I have? Th
-
Blue screen on Windows 7 home basic pc.
I noticed current 8-9 days, my PC stops itself while I'm also working on it(happened_2-3_times_per_7_days).my pc freezes sometimes, it also shows 100% CPU usage using a program. Then a blue screen Details of the appears.the are as follows:- Signature
-
Smartphone blackBerry bold 9700 email problem
Ive had this 9700 particularly since last March. set up my email then and had no problem to receive notifications from my hotmail account Saturday 1-7, I was going to add an another email acct, so I deleted my hotmail account to add to the other. wou