Can we read a ZIP file through ESB file adapter?
Hi,
Is it possible to read a ZIP file from a specified locaiton either through a FTP adapter or file adapter as a opaque element and place it in another specified locaiton?
So far the available options are to read a txt, csv, fixed length or cobol file.
I tried to create a ESB reading ZIP file and place it in another locaiton. but it was not reading the ZIP file.
Is it first possible for the ESB to read the ZIP file? if so then is there any specific configuratuion that we have to do for it to work?
how can we read a MSWORD file through java?You can read it like any other file using FileInputStream
and similar.
Howvere, if you want do do something with it, like display
it, you have a problem. AFAIK Microsoft do not release
information about their document formats, and i have not
seen a .doc viewer for java.
Similar Messages
-
Read a zip file from Application server.
Hi,
Is there a way to read a zip file from the applicatoin server to internal table in ABAP program? The operation system is running MS windows server. The zip file contains only 1 text file. I tried to use open dataset 'uncompress', and use read dataset, but read dataset gave me sy-subrc = 4. Any feedback is greatly appreciated.
Thanks.hi,
to convert xstring to text you can use this:
DATA unzipped_data TYPE xstring.
DATA text_data TYPE string.
DATA conv_x2c TYPE REF TO cl_abap_conv_in_ce.
conv_x2c = cl_abap_conv_in_ce=>create( ).
conv_x2c->convert( EXPORTING input = unzipped_data IMPORTING data = text_data ).
moreover, if you want to split your text at "end of line" (CR LF in microsoft windows) into lines:
DATA text_lines TYPE TABLE OF string.
SPLIT text_data AT cl_abap_char_utilities=>cr_lf INTO TABLE text_lines. -
Read encrpted zip file and ftp unzip file
Hi,
I have a situation,where i need to read 3 zip files, which are encrpted, and each zip file may have lot of images and text files. all i want to do is, read these 3 zip files and unzip + ftp to another directory. No mapping is involved. if the three files are not there, it should error out.
I have some ideas, but thought if any of you have better ideas.
Thanks
PandariHi Pandari
File adapter
module to zip and unzip
/people/stefan.grube/blog/2007/02/20/working-with-the-payloadzipbean-module-of-the-xi-adapter-framework
/people/michal.krawczyk2/blog/2007/02/08/xipi-command-line-sample-functions
<b>Check this weblog:</b>
/people/stefan.grube/blog/2007/02/20/working-with-the-payloadzipbean-module-of-the-xi-adapter-framework
Check this out !
/people/stefan.grube/blog/2007/02/20/working-with-the-payloadzipbean-module-of-the-xi-adapter-framework%3Fpage%3Dlast%26x-order%3Ddate%26x-showcontent%3Doff
also
https://service.sap.com/sap/support/notes/965256
Check this weblog on how to zip the file using XI:
/people/stefan.grube/blog/2007/02/20/working-with-the-payloadzipbean-module-of-the-xi-adapter-framework
PayloadZip Bean
/people/stefan.grube/blog/2007/02/20/working-with-the-payloadzipbean-module-of-the-xi-adapter-framework%3Fpage%3Dlast%26x-order%3Ddate%26x-showcontent%3Doff
Through command line
Check case 2 in this blog
/people/michal.krawczyk2/blog/2007/02/08/xipi-command-line-sample-functions
or ref plsz go tru it,
/people/michal.krawczyk2/blog/2007/02/08/xipi-command-line-sample-functions
Check this weblog on this from stefan:
/people/stefan.grube/blog/2007/02/20/working-with-the-payloadzipbean-module-of-the-xi-adapter-framework
http://help.sap.com/saphelp_nw70/helpdata/en/84/2e3842cd38f83ae10000000a1550b0/frameset.htm
/people/michal.krawczyk2/blog/2005/12/18/xi-sender-mail-adapter--payloadswapbean--step-by-step
Zip or Unzip your Payload with the new PayloadZipBean module of the XI Adapter
/people/stefan.grube/blog/2007/02/20/working-with-the-payloadzipbean-module-of-the-xi-adapter-framework
XI/PI: Command line sample functions -> go through case 2
/people/michal.krawczyk2/blog/2007/02/08/xipi-command-line-sample-functions
Create encrypted ZIP files
Thanks!!! -
Hi
I am making a zip file using GZIPOutputStream. But I am not able to open the zip file that is created using win zip.The size of the zipped file is 81 KB and the input file is 3,245 KB.I have closed all the streams still I am not able to figure out the problem.Any idea where I am going wrong ? Any help would be greatly appreciated.
Here my code goes:
import java.util.zip.*;
import java.io.*;
public class ZipFile
public static void main(String[] args) throws FileNotFoundException,IOException
ZipFile("D:\\Java\\Test\\INPUTXML_bkp_1.xml");
public static String ZipFile(String fileName) throws FileNotFoundException,IOException
String name = fileName.substring(fileName.lastIndexOf('\\') +1 ,fileName.lastIndexOf('.'));
String filePath = fileName.substring(0,fileName.indexOf(name));
String newFileName = new StringBuffer(name).append(".zip").toString();
FileOutputStream outputStream = new FileOutputStream(newFileName);
GZIPOutputStream zipOutputStream = new GZIPOutputStream(outputStream);
FileInputStream inputStream = new FileInputStream(fileName);
byte[] temp = new byte[10000000];
int counter = inputStream.read(temp,0,temp.length);
zipOutputStream.write(temp,0,counter);
inputStream.close();
zipOutputStream.finish();
zipOutputStream.close();
return newFileName;
Thanks
RiteshThanks for the reply.
I changed my code to look like this:
import java.util.zip.*;
import java.io.*;
public class ZipFile
public static void main(String[] args) throws FileNotFoundException,IOException
ZipFile("D:\\Java\\Test\\INPUTXML_bkp_1.xml");
public static String ZipFile(String fileName) throws FileNotFoundException,IOException
String name = fileName.substring(fileName.lastIndexOf('\\') +1 ,fileName.lastIndexOf('.'));
String filePath = fileName.substring(0,fileName.indexOf(name));
String newFileName = new StringBuffer(name).append(".zip").toString();
FileOutputStream outputStream = new FileOutputStream(newFileName);
ZipOutputStream zipOutputStream = new ZipOutputStream(outputStream);
ZipEntry zipEntry = new ZipEntry(fileName);
zipOutputStream.putNextEntry(zipEntry);
zipOutputStream.finish();
zipOutputStream.close();
return newFileName;
Now I can atleast open the zip file. But the problem is the size of the file is 0 kb. Probably because, I am not populating the Zip entry. Can u pls let me know how do I do that.
Thanks
Ritesh -
I have the latest downloadable version of LR5. It crashed while it was createing 1:1 previews during an import. After a Win7(64) restart, it shows a message that LR needs to quit because it can't read the preview files and it will try to fix it the next time is launches. I get the same message the next and every subsequent time it launches so I can't launch LR at all now.
I get that the preview file got corrupted somehow. Is there some way to fix this problem without building a new catalog?Use Windows Explorer to open the folder containing your catalog. You will see a folder with the extension .lrdata. You need to delete that folder and then start Lightroom again. Lightroom will generate a new previews folder.
-
How can one read a Excel File and Upload into Table using Pl/SQL Code.
How can one read a Excel File and Upload into Table using Pl/SQL Code.
1. Excel File is on My PC.
2. And I want to write a Stored Procedure or Package to do that.
3. DataBase is on Other Server. Client-Server Environment.
4. I am Using Toad or PlSql developer tool.If you would like to create a package/procedure in order to solve this problem consider using the UTL_FILE in built package, here are a few steps to get you going:
1. Get your DBA to create directory object in oracle using the following command:
create directory TEST_DIR as ‘directory_path’;
Note: This directory is on the server.
2. Grant read,write on directory directory_object_name to username;
You can find out the directory_object_name value from dba_directories view if you are using the system user account.
3. Logon as the user as mentioned above.
Sample code read plain text file code, you can modify this code to suit your need (i.e. read a csv file)
function getData(p_filename in varchar2,
p_filepath in varchar2
) RETURN VARCHAR2 is
input_file utl_file.file_type;
--declare a buffer to read text data
input_buffer varchar2(4000);
begin
--using the UTL_FILE in built package
input_file := utl_file.fopen(p_filepath, p_filename, 'R');
utl_file.get_line(input_file, input_buffer);
--debug
--dbms_output.put_line(input_buffer);
utl_file.fclose(input_file);
--return data
return input_buffer;
end;
Hope this helps. -
How can I read the bootstrap files of any HDS Live stream and extract the fragment-URLs and fragment-numbers in plain text?
Could it be that it is some kind of compressed format in the bootstrap? Can I uncompress it wirh f4fpackager.exe? Could not find any download for f4fpackager.exe. I would prefere less code to do so. Is there something in Java of JavaScript, that can extract the fragment-numbers?
Thank you!Doesn't sound too hard to me. Your class User (the convention says to capitalize class names) will have an ArrayList or Vector in it to represent the queue, and a method to store a Packet object into the List. An array or ArrayList or Vector will hold the 10 user objects. You will find the right user object from packet.user_id and call the method.
Please try to write some code yourself. You won't learn anything from having someone else write it for you. Look at sample code using ArrayList and Vector, there's plenty out there. Post in the forum again if your code turns out not to behave. -
How can i read local excel file into internal table in webdynpro for abap a
Could someone tell me how How can i read local excel file into an internal table in webdynpro for abap application.
thank u for your replyDeep,
File manuplations...............................
1. At the presentation level:
->GUI_UPLOAD
->GUI_DOWNLOAD
->CL_GUI_FRONTEND
2. At the application server level:
->OPEN DATASET : open a file in the application server for reading or writing.
->READ DATASET : used to read from a file on the application server that has been opened for reading
-> TRANSFER DATASET : writing data to a file.
-> CLOSE DATASET : closes the file
-> DELETE DATASET : delete file
If file is on the local PC,use the function module GUI_UPLOAD to upload it into an internal table by passing the given parameters......
call function 'GUI_UPLOAD'
exporting
filename = p_file
filetype = 'ASC'
has_field_separator = '#'
tables
data_tab = t_data
p_file : excel file path.
t_data : internal table
<b>reward points if useful.</b>
regards,
Vinod Samuel. -
With Lightroom 4 I can't read any .DNG files directly into Photoshop CS. I have"camera raw 2.4" selected in LR and the Plug-in for CS is Camera Raw.8BI.
Any suggestions on what to do? Thanks.Welcome to the Apple Discussions. Have you tried a different DNG converter? Adobe released Adobe DNG Converter 5.3 in March of this year. Maybe, if it supports your camera, this version will create a more compatible file.
-
Can Mac read a dcr file made with win?
Hello,
Can Mac read a dcr file made with win?
Thanks in advance.Thanks Sean,
I posted the question because of some problem of user to read the web page with dcr.
You assumed right, it is e dcr hosted in a browser page and viewed via shockwave with safari.
I don't know the nature of the problem but the user get an error.
Maybe I must decide to buy a mac and do some test.
Thank you again. -
Why can't read access log file in real-time? (Oracle Weblogic Server 10.3)
We can't read access log file in real-time. If access log is rotation to new file so can read access log file but can't read real-time.
*** Oracle Weblogic Server versions 10 R3what's your meaning? try this command "tail -f access.log".
Threre is a buffer about 8K for WebLogic to write the access info into the log files, so you can't see the access info untill the buffer is full. -
Can not read my pdf files can i use adobe ?
I can not read my pdf files and need to download adobe ,can you help please .
In order to read the pdf either you need Acrobat or Adobe Reader,
Acrobat is a paid software and used to read and edit the pdf files.
Reader is the free software used to just read the pdf files.
To download reader use this link:- http://get.adobe.com/reader/ -
After updating os to OSX 10.9.1 I can't open any new pdf files. I get a message saying It may be damaged or use a file format that Preview doesn’t recognise. I can still read older saved files but no new ones arriving by email. Also can't attach a pdf to an email to send out. Any help would be appreciated.
Back up all data before making any changes. Please take each of the following steps until the problem is resolved.
Step 1
If Adobe Reader or Acrobat is installed, and the problem is just that you can't print PDF's displayed in Safari, you may be able to print by moving the cursor to the the bottom edge of the page, somewhere near the middle. A black toolbar may appear under the cursor. Click the printer icon.
Step 2
There should be a setting in its preferences of the Adobe application such as Display PDF in Browser. I don't use those applications myself, so I can't be more precise. Deselect that setting, if it's selected.
Step 3
If you get a message such as ""Adobe Reader blocked for this website," then from the Safari menu bar, select
Safari ▹ Preferences... ▹ Security
and check the box marked
Allow Plug-ins
Then click
Manage Website Settings...
and make any required changes to the security settings for the Adobe PDF plugin.
Step 4
Triple-click anywhere in the line of text below on this page to select it, the copy the selected text to the Clipboard by pressing the key combination command-C:
/Library/Internet Plug-ins
In the Finder, select
Go ▹ Go to Folder
from the menu bar, or press the key combination shift-command-G. Paste into the text box that opens (command-V), then press return.
From the folder that opens, move to the Trash any items that have "Adobe" or “PDF” in the name. You may be prompted for your login password. Then quit and relaunch Safari.
Step 5
The "Silverlight" web plugin distributed by Microsoft can interfere with PDF display in Safari, so you may need to remove it, if it's present. The same goes for a plugin called "iGetter," and perhaps others — I don't have a complete list. Don't remove Silverlight if you use the "Netflix" video-streaming service.
Step 6
Do as in Step 4 with this line:
~/Library/Internet Plug-ins
If you don’t like the results of this procedure, restore the items from the backup you made before you started. Relaunch Safari. -
Hi Guys
I'm using PPr CS5 on Win7 64bit.
I'm not sure if this is strictly for here but can I pick your brains please? I edited in PPr and exported three versions of the same video to AVI (mainly different intros and titles) and they all play fine. I back up my movies to an external disk but one of them always creates an error in the back-up "Can't Read from Source File". The file sizes are 5.3gb for the offending movie and 8.3 for the other two.
I know the answer is to re-export the movie but I'm just trying to get a bit of a handle what could have caused this problem in the first place and if this is a common problem?
Any views?
Regards,
GrahamThat doesn't help much. What exactly are you doing when you get the error message?
Are you trying to open a PP project which contains the file?
Are you trying to play a sequence which has clips from that file?
Are you trying to play it in a media player?
Are you trying to import the file into PP? -
How can I read the EXCEL file while Program is running in background.
Hi all Expert,
How can I read the EXCEL file while Program is running in background.
Thanksyou need to place ur excel file on application server and follow this thread: Reading an Excel file from the application server?
loots of information if you can search forum.. thanks
Maybe you are looking for
-
HT3819 Can I share my music with my wife who has a seperate Apple ID?
I just bought my wife an iPad Mini and she decided she wanted her own Apple ID so she can start managing her own music and such. Previously, she has been using my account to load her iPod with music. The problem is that I can't figure out how to ge
-
Some sites worse than others. Seems to be triggered to adds loading as sites load. Must close error multiple times as pages load to continue to load the page. This is becoming real annoying.
-
Hi, This has puzzled me for several years. Can anyone tell me the difference between deprecated methods and obsolete methods? I would normally think that "obsolete" is worse than "deprecated", but that doesn't seem to be the case. For instance, the C
-
The Ads at the bottom of Contact screen
I've tried everything. I've unchecked or checked every privacy box. I've searched for an answer. So can someone tell me why I'm still seeing the ad window? I'm a paid subscriber. Thanks in advance for any help.
-
Jdeveloper Problem In Setting WhereClauseParam
Hi All, I have a problem here i am not able to set values to ? Styled parameters of the view object. Even if i set it the the View object does not carry those parameters. Pls help me out.. Thanks, Ganesh R