PI FTP get zip file and want to unzip with origin filenames
Hello everybody,
we get zip files from ftp and want to unzip this file in one target directory (file adapter). May be, there are more than one file in the zip file, for example test1.txt,test2.txt,test3.txt and zip file name is zipexample.zip. With adapter parameters it is possible to use the name of the zip file, but I've no idea to get the origin filenames (test1.txt, ...).
I don't want to use the OS Commands to do this.
I know that's not realy an workitem for PI.
Is there anyone, who has an idea. Thanks
Kind regards - Jochen
Hi,
Try out this blog
Working with the PayloadZipBean module of the XI Adapter Framework
regards,
venkat.
Similar Messages
-
Rename files and retain portions of the original filename
I posted a thread about this a while ago, but no solution was given:
http://discussions.info.apple.com/thread.jspa?threadID=2564646
The issue is this: I can't figure out how to rename imported files while also retaining part of the original filename. The images come off of the camera like this:
DSC_3497.nef
I need to do the following:
+- Retain the unique number that the image already has. I don't want to rename the files by date, location, lunar phase, or some other esoteric identifier. I think having a unique ID for each image (one that shows up in standard OS-level searches on both Mac and PC systems) is useful.+
+- Replace "DSC" with the camera model (D3X), since I use multiple cameras with different resolutions and also need to be able to search for images from a certain camera outside of Aperture (i.e. tags/keywords would not help).+
+- Add a digit prior to the four-digit string to indicate the true numeric sequence of the file. Since Nikon cameras reset the number sequence every 10,000 files, I want to indicate the true sequence number directly in the filename. This will also avoid filename overlaps. It also lets me know how many images I've shot with each camera.+
The intended final result would look like this:
D3X_63497.nef
Showing the 63,497th image taken with my D3X.
In Aperture's "File Naming" dialog, I don't see a way to split the existing filename in this way. It looks like I can only append or prepend a Custom Name to the Version/Master name. I don't see a way to split the existing filename at the underscore, for example, so that portions of the original filename can be selectively replaced.
This is not about finding a workable naming scheme for Aperture and then renaming all existing files. I spend time on the PC side for various things and also work with a number of people who don't use Aperture but need access to my image library. I also have hundreds of references to existing filenames in various print and web design projects, as well as my Flickr account with 3000+ photos.
Going back and updating all that stuff is not going to happen. But using a System Service to rename files after every import is also pretty tedious.
Any solutions that meet the three criteria outlined above would be greatly appreciated.sempervirent,
You're asking for some pretty advanced file naming. Most people aren't going to need that sort of function, so I doubt there will be a hook into Aperture to do such a thing. I suggest using a shell script or Applescript along with EXIFTool to rename files before you import them into Aperture. http://www.sno.phy.queensu.ca/~phil/exiftool/
Retain the unique number that the image already has
If you're not afraid of the command line, it's easy enough to use a tool like awk or maybe perl to parse that sequence number from a well-formatted string like the picture name
Replace "DSC" with the camera model (D3X)
You can use EXIFTool to extract the camera model from the EXIF dat ain the photos
Add a digit prior to the four-digit string to indicate the true numeric sequence of the file.
Good luck with this one. You'll have to do a filename search through all of your previous files to find out what 10,000 you're on. It's possible, but you'd have to do some specialized coding in AppleScript or shell script.
nathan -
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!!! -
How to set password for a zip file and should be checked when reading that
Hi friends,
how to set password for a zip file and should be checked when reading that file???
thanks.
Praveen Reddy.JHeyy man, i think, u did not get my problem.
all i have to do is:
i have to create a zip file, and we should secure it with password when creating. and whenever the user wants to open that zip file he should provide correct passowrd otherwise he could not read that file. So, we should check for that also.
Tanks for reply. -
Converting html file into zip file and send email attaching zip file
Hi Experts,
I am trying to send email with attachment(html). Which contains more than 7MB. So, It is throwing an error like Size exceeded.
So, Now i need to compress the data for less than 7MB.
I decided to convert HTML File into ZIP File.
Kindly suggest me to convert the HTML file into ZIP file and sending email with attached ZIP file.
Correct answer rewarded,
Thanks & Regards,
N. HARISH KUMARHi Experts,
*// HTML_TAB converting into ZIP File
DATA : zip_tool TYPE REF TO cl_abap_zip,
filename TYPE string ,
filename_zip TYPE string .
DATA : t_data_tab TYPE TABLE OF x255,
bin_size TYPE i,
buffer_x TYPE xstring,
buffer_zip TYPE xstring.
filename = text-007. "'HTML_TAB
*describe the attachment
DESCRIBE TABLE html_tab LINES tab_lines.
bin_size = tab_lines * 255.
CALL FUNCTION 'SCMS_BINARY_TO_XSTRING'
EXPORTING
input_length = bin_size
IMPORTING
buffer = buffer_x
TABLES
binary_tab = html_tab.
IF sy-subrc <> 0.
* message id sy-msgid type sy-msgty number sy-msgno
* with sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
ENDIF.
*create zip tool
CREATE OBJECT zip_tool.
*add binary file
CALL METHOD zip_tool->add
EXPORTING
name = 'FSSAI_MAIL.HTML'
content = buffer_x.
*get binary ZIP file
CALL METHOD zip_tool->save
RECEIVING
zip = buffer_zip.
CLEAR: t_data_tab[],bin_size.
CALL FUNCTION 'SCMS_XSTRING_TO_BINARY'
EXPORTING
buffer = buffer_zip
IMPORTING
output_length = bin_size
TABLES
binary_tab = html_tab.
Thanks & Regards,
N. HARISH KUMAR -
Need to Append the records in file and want to Overwrite the file
Dear SDners,
I facing one scenario i am sending 5lacs records in 50k slots want to append these records in same file in one day and next day i want to overwrite the existing file............
Plz suggest......
Regards
GangahI Santosh,
I am not duplicating the posting .now i have now change my interface design my interface is not meeting my req ,by this append opreation as you also know that first want to append the records whole day in one file and then next day with same processing i want to over write the file.
I think now u will get my point......................:)
Regards
Edited by: gangadhar kh on Feb 4, 2010 2:24 PM -
Extension for creating a zip file and unzipping it
Iam totally new to Dreamweaver and the extensions. So please
help me with this.
Assuming i have a .zip file and it contains some html pages
along with css and gifs.
The req is to have an Import option, which given this zip
file, can unzip its contents. The user can work on these html
pages. When the user finishes working on them, I need an export
button so that we can package the entire stuff back into a zip
file.
How can i implement this ?
Is there any extension that is available for this ?
Eagerly looking forward to some useful answers...
Thanks in advance,
GaneshThere used to be one .. I'm not sure if that was in DMX time
or DMX 2004
time .. that, when installed, allowed you to select files
from the site
folder or the whole thing and create a zip from them. I don't
remember what
it was called or who created it .. but it might be on one of
my archived
disks or zips .. I'll try to check it out later today.
Nancy Gill
Adobe Community Expert
Author: Dreamweaver 8 e-book for the DMX Zone
Co-Author: Dreamweaver MX: Instant Troubleshooter (August,
2003)
Technical Editor: DMX 2004: The Complete Reference, DMX 2004:
A Beginner''s
Guide, Mastering Macromedia Contribute
Technical Reviewer: Dynamic Dreamweaver MX/DMX: Advanced PHP
Web Development
"Ganesh Ram" <[email protected]> wrote in
message
news:engarc$d62$[email protected]..
> Iam totally new to Dreamweaver and the extensions. So
please help me with
> this.
>
> Assuming i have a .zip file and it contains some html
pages along with css
> and
> gifs.
> The req is to have an Import option, which given this
zip file, can unzip
> its
> contents. The user can work on these html pages. When
the user finishes
> working on them, I need an export button so that we can
package the entire
> stuff back into a zip file.
>
> How can i implement this ?
> Is there any extension that is available for this ?
>
> Eagerly looking forward to some useful answers...
>
> Thanks in advance,
> Ganesh
>
> -
I want to add hyperlink in the illustrator file and want the output in the PDF
I want to add hyperlinks in the illustrator file and want the output in the PDF.
I tried to add the multiple hyperlinks on the text and images in the illustrator by using the attribute panel but the links are not working in the published PDF.
Is there is any other method to create a hyperlink in the illustrator?
Can anybody help me out in this
ThanksInteresting, Carlos.
There's another method by JET: Re: hyperlinks in Ai -
I have some my violin recorded audio files and want them to be converted to printable notation throw "audio to score"from Factory. But do not have a normal result. Could someone help me, please. .
seeren wrote:
Normal result is on the sloppy side of inaccurate.
Wish I'd started this topic so I could give you a green star!
Great description. -
I do not have blackberry messenger in my phone, Can i get a file and install it on my phone
I do not have blackberry messenger in my phone, Can i get a file and install it on my phone
Connect your device via USB-cable to the computer.
Launch Internet Explorer
Open this address: http://na.blackberry.com/eng/services/devices/
Click on "Update Now" button
Popup will be displayed, now open the applications list, find BB Messenger in the apps list and check it to install. -
how to get all how to get all paragraphs style and their fonts of a indesign file and write all info with para info into txt file with scriptingstyle and their fonts of a indesign file and write all info with para info into txt file with scripting
I write the script this one works
var par=doc.stories.everyItem().paragraphs.everyItem().getElements();
for(var i=par.length-1;i>=0;i--)
var font=par[i].appliedParagraphStyle.name;
var font1=par[i].appliedFont.name;
var size=par[i].pointSize;
WriteToFile (par[i].contents + "\r" + "Style : " + font + "\r" + "FONT1 : " + font1 + "\r" + "Size : " + size + "\r", reportFilePath);
function WriteToFile(text, reportFilePath) {
file = new File(reportFilePath);
file.encoding = "UTF-8";
if (file.exists) {
file.open("e");
file.seek(0, 2);
else {
file.open("w");
file.writeln(text);
file.close();
Thanks for all your support -
Ive gotten a zip file and i have no idea how to open it and view images
ive gotten a zip file and i have no idea how to open it and view images?
Double-click it in the Finder.
(107691) -
I've created a prproj file and want to create a master DVD. Is there a simple way to do this?
I'm not sure I would call disk authoring a 'simple' process. Unless it's a very basic disk, or course, with but a single timeline and no menus. But the kind of disk we're using to seeing from Hollywood is anything but simple to create, and so not so simple to explain.
Might be time for some research. -
i have an ipad mini and have started online course.documents sent to Dropbox. Mixture of word documents, zip files and powerpoint. Need to be able to use documents offline. any suggestions on suitable app that would enable me to transfer documents and work with them off line?
Depends on what you mean by "work with them offline". If you mean store the documents so you can access them if not connected to the internet, you already have it: DropBox.you can download files from the cloud an use them offline. You will need an app to handle the zip files: I use File Manager, but there are others. File Manager also intergrates with dropbox, Google Drive, and iCloud. If you only need to read them, these apps will take care of that for you.
As for editing, there are a few options. All have their limitations.
Some possible apps to look at:
Pages, Numbers (Apple)
Document (by Savy soda)
document 2 go
Quickoffice
CloudOn
Smart Office
Make sure to read botht he descriptions and the reveiws carefully -
How to open a pdf file and then attach it with images
I am new to Indesign Server.
I'm currently working on a pdf.
I have a white blank pdf template.
that I want to attach/glue it with images.
How to open a pdf file and then attach it with images.
Please, help me.
Thanks.First step would be to make yourself familiar with InDesign desktop version.
Whatever you intend to achieve, do it there manually. (see regular app docs or forums)
Then try to automate your steps with scripting (see scripting docs or forum)
If you can do it with a script in the desktop version, that script will likely also run in ID Server. (see server forum).
If you can specify missing features not achievable thru scripting or manual use, reconsider to write a plugin (this forum).
A seasoned C++ programmer will need a few months to learn the basics, wade thru tons of documentation etc. Alternatively consider to hire a consultant to do the development work for you.
Dirk
Maybe you are looking for
-
Error While deploy HFM Application
Hello, I'm finding "Detail : Object reference not set to an instance of an object." this error while I'm deploying th HFM application from EPM environement. Amit
-
My mac mini has developed a problem starting up. The computer turns on and goes to the gray screen but on the gray screen the apple logo does not appear. After a few minutes the screen just goes gray with a folder flashing from a question mark to a f
-
Hi all, I just wanted to know how many types of events are in OOPs ABAP
-
Dynamic Actions not firing when using date picker?
The dynamic actions don't seem to be triggering when selecting a date from the date picker, but trigger just fine when the dates are manually entered. Anyone else have this problem and if so is there a workaround to get it to work from the date picke
-
Only one website will not load.
There is one specific website that will not load for me. It will not load on IE, Chrome or Firefox. But it works on any browser on my phone or on my families laptops. The website loads a blank white screen and when I view the source code there is not