After uploading file in BLOB using webutil file on system locked?
I uploaded file in BLOB using webutil upload utility. But after uploading it locks the file and i cannot delete the file unless i close the iexplorer window.
Is there any way to unlock the file and delete it with out closing the application(iexplorer). If any body knows please reply.
Regards,
Muhammad Qazzafi
can you post the statements, which you use for the upload ?
thx
Gerd
Similar Messages
-
How can i put a file into blob(using sun.jdbc.odbc.JdbcOdbcDriver)
Hi
i tried to put a file into blob , but got a problem.....
My environment:windows 2000pro,JBuilder 5.0 enterprise,oracle 8.1.6,(not install oracle jdbc driver )
a part of program(my program is very uglily,if anyone want,later i paste it ba....~_~)
//Statement stmt2=null;
//Resultset rs2;
//opa1 is the blob data
void saveBlobTableToDisk(Connection con) {
try {
stmt2=con.createStatement();
sqlStr2="SELECT * FROM emp3 where id=1004";
rs2=stmt2.executeQuery(sqlStr2);
while (rs2.next()) {
Blob aBlob=rs2.getBlob("opa1");
i got the exception :
" null
java.lang.UnsupportedOperationException
at sun.jdbc.odbc.JdbcOdbcResultSet.getBlob(JdbcOdbcResultSet.java:4174)
at test3.Frame1.saveBlobTableToDisk(Frame1.java:48)
at test3.Frame1.<init>(Frame1.java:26)
at test3.Application1.<init>(Application1.java:5)
at test3.Application1.main(Application1.java:8) "
and the windows pop up a messagebox said that(about) my memory "0x09af007f" could not read, error in javaw.exe .
Later i used (ResultSet)getBinaryStream() to solve it. but getBinaryStream() only return a InputStream,so that i can make blob to a file,but i can't make a file to blob using jdbc.....
I am very stupid that installing sun java, oracle jdbc driver etc....(because i must set a lot of thing such as classpath,java_home etc), Can i only use JBuilder to do that ?
Or i must install oracle jdbc driver ?
Thanks.My guess here is that Sun's JDBC-ODBC bridge doesn't handle the BLOB datatype. Most ODBC drivers don't support that datatype, so I wouldn't expect the bridge to.
Is there a reason that you can't use the Oracle driver?
Justin -
How can i put a file into blob using jdbc !?
Hi
i tried to put a file into blob , but got a problem.....
My environment:windows 2000pro,JBuilder 5.0 enterprise,oracle 8.1.6,(not install oracle jdbc driver )
a part of program(my program is very uglily,if anyone want,later i paste it ba....~_~)
//Statement stmt2=null;
//Resultset rs2;
//opa1 is the blob data
void saveBlobTableToDisk(Connection con) {
try {
stmt2=con.createStatement();
sqlStr2="SELECT * FROM emp3 where id=1004";
rs2=stmt2.executeQuery(sqlStr2);
while (rs2.next()) {
Blob aBlob=rs2.getBlob("opa1");
i got the exception :
" null
java.lang.UnsupportedOperationException
at sun.jdbc.odbc.JdbcOdbcResultSet.getBlob(JdbcOdbcResultSet.java:4174)
at test3.Frame1.saveBlobTableToDisk(Frame1.java:48)
at test3.Frame1.<init>(Frame1.java:26)
at test3.Application1.<init>(Application1.java:5)
at test3.Application1.main(Application1.java:8) "
and the windows pop up a messagebox said that(about) my memory "0x09af007f" could not read, error in javaw.exe .
Later i used (ResultSet)getBinaryStream() to solve it. but getBinaryStream() only return a InputStream,so that i can make blob to a file,but i can't make a file to blob using jdbc.....
I am very stupid that installing sun java, oracle jdbc driver etc....(because i must set a lot of thing such as classpath,java_home etc), Can i only use JBuilder to do that ?
Or i must install oracle jdbc driver ?
Thanks.
D.T.My guess here is that Sun's JDBC-ODBC bridge doesn't handle the BLOB datatype. Most ODBC drivers don't support that datatype, so I wouldn't expect the bridge to.
Is there a reason that you can't use the Oracle driver?
Justin -
PI needs to obtain a zip file via FTP using the File adapter
I have a scenario where PI needs to obtain a zip file via FTP using the File adapter, this zip file contains a number of txt files that I need to process, and the content of one of them send it to an ECC, now I'm using the PayloadZipBean Module in the Sender FIle Adapter, and I have two things if I use the Message Protocol as File, I get a Payload for each txt file in the zip file, but this payload has no structure, and if I use the File Content Conversion I get an XML strcuture with only one field and a strange string in it, and somewhere in this string the names of the files I assume all the content of the zip file, can anyone help on how could I achieve what I need that is to pull the zip file via SAP PI, then unzip it, and with the content of one of the txt files send it to an ECC via ABAP Proxy, thanks in advance for your answers.
Regards,
Raul AlvaradoHello Raul,
you can do it in futher way ...
pickup zip file and simply extract and dump it in another temp folder (can use scripts on OS level).
@ then Use another sender communication channel to pickup all these text file .
for further clarification you can use these links also. -
Process txt files in zip file
Accessing File using FTP from Java Mapping
File Sender Adapter with FTP protocol
BR
Raj -
When trying to attach files to emails using the MobileMe webmail system, it lets me browse and click on a file but then does nothing and there is no actual attachment. It previously always worked. I checked with the MobileMe folks and they said it is a browser problem. (True, it works in Safari.) Any ideas on how to fix this? I prefer Firefox, of course.
Hi davebundy-
One suggestion I've heard is that ad block may be perceiving the mail client as an advertisement. The solution was to mark the webmail URL as safe with any ad block plugins or software you have. Hope that helps. -
possible water damaged ipod shuffle, turns on and plays music, but have 3 seconds after turning it on to use buttons then they all lock up
I think that you need to get a new one. I got mine at http://www.prizerebel.com/index.php?r=1552886
-
Uploading data through scat using without files
if we are uploading data for J1IS using BDC, Values are not getting updated.
so we are trying to upoad it using SCAT.
what are the steps to fHello Member,
This thread is locked since it does not adhere to rules of engagement. Please go through rules of engagement before you post any threads in here.
Thanks and Kind Regards
Mohan
eCATT forum Moderator -
How to upload/download to blob using ADF-toplink?
I am using ADF-toplink,i tried upload to blob using some of the code given in the ADFBC upload/download application...IT WORKED... but download is not working...I want to know some better method for both uploading and downloading... IN ADF-TOPLINK only......
Hi guys,
I'm able to download file in ADF using af:fileDownloadActionListener.......
does any one knows how to upload a file using ADF??? -
What type of file can be used with file generator in Motion 4?
Regarding using the File Generator in Motion 4, what type of file can be used? After clicking the browse button in the inspector tab,
all files appear greyed out and are not selectable.
Thanks!
RichardCool. Thanks GFXZen. I was stumped by TextEdit saving files in rich text format. Here is an article on how to save in plain text from TextEdit:
http://support.apple.com/kb/TA20406 -
Use preview files unchecked, but uses preview files?
Premiere Pro CS4 running on Windows XP MCE SP3 on a core two duo processor (Yes, I know it is underpowered, but it works well enough for my current projects) and a three internal HDD setup.
When exporting to mpeg2 - DVD I make sure to check "maximum render quality" and uncheck "use preview files".
I noticed that if the timeline is rendered before export, then a one minute video will complete export in about one minute.
If the timeline is left unrendered before export, however, the export will take about twenty minutes.
I thought that the export is not affected by whether or not the timeline is rendered as long as preview files are not used.
Am I mistaken, or is something not right?If Use Render Files is unchecked, then the program should not be using them. With MPEG-2, there is not really that much that can be gained, as the Render files are AVI.
Also, what are the specs. of the Clips on the Timeline?
I would check things like the WAB (Work Area Bar), just to make sure that you are seeing apples vs apples, so to speak.
Good luck,
Hunt -
Can we create pdf files from oracle using UTL FILE
i have sample code---
create or replace procedure UTLTEST as
f1 utl_file.file_type;
begin
-- Open a file in write mode
f1 := utl_file.fopen('UTL_FILE_DIR1','NEWFILE.pdf','W');
-- Write a line to a file
utl_file.put_line(f1,'1. This is a test of UTL_FILE packages');
utl_file.put_line(f1,'2. Oracle has added a new procedures in the package');
utl_file.put_line(f1,'3. We will see all the procedure one by one');
-- Close a file
utl_file.fclose(f1);
end;
file is created but when i opened it ,it gives me error that file can not open
is there any way to do it?Hi!
you can see the following link ---
http://forums.oracle.com/forums/search.jspa?threadID=&q=how+to+create+pdf+from+pl+sql&objID=f75&dateRange=all&userID=&numResults=15 .
And also -- http://www.plpdf.com/ .
Hope this will help u a bit.
Regards.
Satyaki De. -
Save file to database using WEBUTIL
Hi,
I have used webutil_file_transfer.Client_To_AS_with_progress to upload files from client to Application Server using Forms 10g
However, now i want to save file in database and not upload to database.
Apart from the problem, I was wondering if there is documentation available on WEBUTIL
Please helpI want to store the file in the database as a BLOB.
Earlier I was uploading to Application Server.
I had used webutil_file_transfer.Client_To_AS_with_progress to upload to Server,
I hope there is a procedure / function similar to Client_To_AS_with_progress in the webutil_file_transfer package -
How to insert an image file as blob using JDBC Statement
Hi,
I'm new on java.
I want the code to insert an image file in Oracle database whose data type is blob.
i want to use JDBC statement not the prepared statement.
Please help me out.user8739226 wrote:
thanks for the solution.
I want to ask one thing
let say i've created a method in a bean in which i'm passing three parameters.
One is tablename as String, Second is Name of tablefields as Object, Third is Values as Object
Like:
public synchronized int insert(String table,Object[] fields, Object[] values)Ah now we're getting somewhere. I was trying to come up with a situation where using a regular Statement over PreparedStatement would be viable and came up with practically nothing.
In the method body i'm accessing the table fields and values and combining them into the insert sql query.
how can i do this using preparedstatment.
how do i come to know here in this bean that this value is int or string or date at runtime to use setInt, setString, setdate or setBlob respectively.That's your problem. Bad design. You want to make some sort of universal insert method that can insert anything anywhere. But it doesn't really make sense, because whenever you're trying to insert something, you know exactly what you want to insert and where. You could use a PreparedStatement at that point (although encapsulate it in its own method). Now you're trying to create your own poorly designed framework over JDBC that doesn't solve problems, only increases them.
Above was the only reason i saw, i was using statement instead of preparedstatment as statement was looking easy in this situation.
please, give me the solution of above using preparedstatment.No, rather you should reconsider your design. What advantage does your insert() method give you over, let's say using a regular PreparedStatement. Granted, you can put your connection opening and other boilerplate code in the method. But if that's your only problem, then your insert method isn't gonna be much use. You could always switch to JPA for example and work with that. -
Upload multiple files in jsp using input file
hi i have been trying to upload multiple 3 iamges max into the server.by adding the path into the database.
<%@page import=" java.io.*"%>
<%@page import=" javax.servlet.*"%>
<%@page import=" javax.servlet.http.*"%>
<%@page import=" java.sql.*"%>
<%response.setContentType("text/html");
String pid = request.getParameter("id");
System.out.println(pid);
int propid=Integer.parseInt(pid);
Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
Connection conn= DriverManager.getConnection("jdbc:odbc:rama");
String contentType = request.getContentType();
if ((contentType != null) && (contentType.indexOf("multipart/form-data") >= 0)) {
DataInputStream in = new DataInputStream(request.getInputStream());
int formDataLength = request.getContentLength();
byte dataBytes[] = new byte[formDataLength];
int byteRead = 0;
int totalBytesRead = 0;
while (totalBytesRead < formDataLength) {
byteRead = in.read(dataBytes, totalBytesRead, formDataLength);
totalBytesRead += byteRead;
String file = new String(dataBytes);
String saveFile = file.substring(file.indexOf("filename=\"") + 10);
saveFile = saveFile.substring(0, saveFile.indexOf("\n"));
saveFile = saveFile.substring(saveFile.lastIndexOf("\\") + 1,saveFile.indexOf("\""));
saveFile=saveFile.substring(saveFile.lastIndexOf("."),saveFile.length());
saveFile= pid + saveFile;
//out.print(dataBytes);
int lastIndex = contentType.lastIndexOf("=");
String boundary = contentType.substring(lastIndex + 1,contentType.length());
int pos;
pos = file.indexOf("filename=\"");
pos = file.indexOf("\n", pos) + 1;
pos = file.indexOf("\n", pos) + 1;
pos = file.indexOf("\n", pos) + 1;
int boundaryLocation = file.indexOf(boundary, pos) - 4;
int startPos = ((file.substring(0, pos)).getBytes()).length;
int endPos = ((file.substring(0, boundaryLocation)).getBytes()).length;
String saveFilepath="upload/" + saveFile;
FileOutputStream fileOut = new FileOutputStream(saveFilepath);
//fileOut.write(dataBytes);
fileOut.write(dataBytes, startPos, (endPos - startPos));
fileOut.flush();
fileOut.close();%>
<center>
<table border="4" width="50%" bgcolor="#2C9FE6" bordercolor="#3C6B9E" id="table16">
<tr>
<td><%out.println("File saved as " +saveFile);%></td>
</tr>
</table></center><br>
<%
Statement st=conn.createStatement();
int q=st.executeUpdate("update addprop set imagepath='"+saveFilepath+"' where propid="+propid+" ");
System.out.println(q);
%><%}%>
this code uploades one image i want to upload max 3 how to do itt helpHi Sandesh,
this is simply not supported, not in WebDynpro nor in standard HTML.
A workaround is to upload a ZIP with all files and on server side unpack the ZIP and operate on the single files.
I hope it will help u..
----------------------OR-------------------------
As you know using File upload UI element we can upload only one file at a time. There may be a scenario where user may want to upload any no of files at a time which is not determined at design time. This can be acheived using the ACF UpDownload UI element which requires a security whiltelist to be created
http://scn.sap.com/docs/DOC-2270
----------------------OR-------------------------
You can use Table UI element.
Regards,
Deepak Singh -
Flat file to Oracle using --- LKM File to Oracle (SQLLDR)
Hello All,
I am planning to replicate simple sqlldr process below in ODI. Two things I cannot do, 1) I cannot modify exisiting tables for creating new sequences 2) We need SEQ column to start with 1 always(tried sequence in odi, didn't work as expected). I am not really good at jython nor java to be able to code "SEQ SEQUENCE (MAX,1) " process in knowledge module(LKM File to Oracle (SQLLDR)) during control file creation. please advice.
thanks in advance.
OPTIONS ( SKIP=0)
LOAD DATA
INFILE 'e:\Hyperion\DRM\Loadfile\wfc\WFC_1GLO_LE.txt'
BADFILE 'E:\Hyperion\ODI\Logs\WFC_1GLO_LE.bad'
DISCARDFILE 'E:\Hyperion\ODI\Logs\WFC_1GLO_LE.dsc'
TRUNCATE INTO TABLE "MDM_STAGE"."WFC_1GLO_WFLE"
FIELDS TERMINATED BY X'9'
TRAILING NULLCOLS
SEQ SEQUENCE (MAX,1),
PARENT,
CHILD,
CHILD_ALIAS,
ATTRIBUTE1,
ATTRIBUTE2,
ATTRIBUTE3)You must modify LKM/IKM to create new sequence for each table. Typically, you should load the file into a C$ table in LKM and then call the sequence to get new key ids in IKM stage. But you can do this in LKMif you know what you are doing.
Duplicate LKM or IKM (in this case, LKM File to Oracle (SQLLDR)). Add two steps to the LKM before load step. In the first new step, add drop sequence statement like DROP SEQUENCE <%=odiRef.getTable("L", "TARG_NAME", "W")%>SEQ. Mark this step as "Ignore Error" so that load does not fail when sequence would not exist during the first run. In the second new step, create the sequence <%=odiRef.getTable("L", "TARGNAME", "W")%>_SEQ. That way your sequence value will start from 1 always. Be careful during the incremental run though.
Happy debugging.
Maybe you are looking for
-
I have two calendars setup and in the Year view. Each calendar is set to a different color but every event from both calendars shows up as yellow. I'd like to have one calendars' events show up as one color while each different calendar to show up in
-
Purchase group security in the create PO role
Hi, What are other larger companies with multiple purchase groups across multiple plants, doing with purchase group in their create purchase order role? Are you following the same practice for all the purchase order roles that include purchase group
-
Model multiple key figures of BI cube to BPC
Hi Experts,Probably a good way of having multiple Key figure values from BI to BPC is to convert it into a account based model (create a dimension and have the key figures as dimension members).I have this scenraio where we are using COPA (costing ba
-
I am trying to restore my contacts from icloud to iphone 4 but when trying to switch off contacts in icloud first to switch back on it just hangs for ever - dont know what else to do - help please
-
RMS -- Getting the RecordId of the Current Record
Hello, I need to get the current record Id from recordStore so I can update a count field. Here is the code that updates the count field. // member vars to hold RMS stuff private RecordStore rs; private RecordEnumeration re; private ByteArrayOutputSt