I got a question about compression of files.

I implemented a file upload and download function in webdynpro abap.
but I think it's too heavy if there's no compression function.
So I've been searching the function but i couldn't find it.
is there anybody who knows the function?
thank you for reading.

I solved the problem.
Thanks
Regards,
Jong.
  data: lo_gzip type ref to cl_abap_gzip.
  data: content type xstring.
  data: content_len type i.
create object lo_gzip.
  node_z009 = wd_context->get_child_node( name = 'Z009' ).
  node_z009->get_static_attributes( importing static_attributes = l_z009 ).
  wd_context->get_attribute( exporting name = 'DATA' importing value = l_z009-data ).
content_len =  strlen( l_z009-data ).
lo_gzip->compress_text( exporting text_in = L_Z009-DATA TEXT_in_len = content_len compress_level = 6
                        importing gzip_out = content gzip_out_len = l_z009-len ).
L_Z009-DATA = CONTENT.
  wd_comp_controller->upload( EXPORTING DATA = l_z009-data LEN = L_Z009-LEN ).
ANOTHER METHOD
DATA: LO_GZIP TYPE REF TO CL_ABAP_GZIP.
DATA: CONTENT TYPE XSTRING.
CREATE OBJECT LO_GZIP.
node_temp_z009 = wd_context->get_child_node( name = 'TEMP_Z009' ).
select * into table lt_temp_z009 from /dogok/009 where id_f = l_z002-id_f and number_f = l_z002-number_f.
LOOP AT LT_TEMP_Z009 INTO L_TEMP_Z009.
CONTENT = L_TEMP_Z009-DATA.
LO_GZIP->DECOMPRESS_TEXT( EXPORTING GZIP_IN = CONTENT GZIP_IN_LEN = L_TEMP_Z009-LEN
           IMPORTING TEXT_OUT = L_TEMP_Z009-DATA TEXT_OUT_LEN = L_TEMP_Z009-LEN ).
MODIFY LT_TEMP_Z009 FROM L_TEMP_Z009.
ENDLOOP.
node_temp_z009->bind_table( lt_temp_z009 ).

Similar Messages

  • Basic question about importing wma files

    Hi, I have a basic question about importing wma files. I ripped some cd's on a Mindows computer using Media Player, but now want to copy them to my Mac and use them in iTunes on my Mac. when I use Import in iTunes, nothing happens and I cant even seem to copy them one by one using the Music folder.
    Can someone help me?
    thanks
    eMac   Mac OS X (10.4.4)  

    iTunes for Mac doesn't support .wma files.
    If you can use a PC to convert them, you can use one of many freeware applications. Google for 'wma to mp3'.
    For the Mac there's the shareware program EasyWMA that can convert them.
    Hope this helps.
    M
    17' iMac fp 800 MHz 768 MB RAM   Mac OS X (10.3.9)   Several ext. HD (backup and data)

  • Some questions about importing HTML files

    Hi, folks
    Let's suppose we want to import a pack of HTML files formatted in HTML5 wit's it's CSS into a double-oriented folio. A couple or three questions about that, please:
    1. Is there a limit for a reasonable quantity of HTML files I can import into a folio? I mean.. 100 would be way too much, for instance?
    2. These HTML files could be navigated and referenced from inside TOC-pages made in InDesign,right? (navto://..., I gues?)
    2. Will it be possible, by means of HTML adaptative design techniques, to treat both orientations (vertical and horizontal) as different viewports or screen sizes so that the design adapts for instance the column width with its CSS?
    3. That said, will the InDesign final app. respect that adaptative CSS rules?
    I am asking this because we are looking for a way to inject big quantities of content with a very similar design into our application in a really fast and automatizable way and I have the suspicion* that importing HTML5 preformated CSS files could be the a very good and simple alternative to importing XML into InDesign templates as we start out content as tagged almost-html files.
    Thanks a lot
    Gustavo Sánchez (Posting from Madrid)

    I assume you are asking about using HTML articles.
    1. There is no limit beyond simply keeping things reasonable.
    2. Yes. Just use navto://articlename
    3. Yes. I've used min-width of 768 and max width of 1024 to control it.
    4. InDesign does not enter into any of this with the exception of using the folio builder panel. Everything else is done in Dreamweaver or whatever program you decide to use for the article.
    If you want to restrict the HTML articles to one orientation or the other, use the _h and _v suffixes.
    Bob

  • Few Questions About Backing Up Files

    Okay, I'm pretty new to this, and have checked the support pages, but I do have some questions about backing up my files.
    I'm running out of room on my computer's hard drive, and am wondering if burning the library to CDs will allow me to quickly restore my library on my computer when I sync my iPod.
    I know that when an iPod syncs with a comp, it will lose any songs that aren't on the library list. (If I deleted some songs to free up room, I'd lose those songs on my iPod when I synced it up.) Is there a way to prevent that from happening? Some way to save a headache continuously restoring my iPod's library every time I want to add a new song or recharge it?
    I'm on Windows XP, if that matters.

    Best and easiest solution is to buy an external hard drive. Then simply drag and drop your iTunes folder from your internal onto the external and copy the entire library.
    Patrick

  • Question about calling batch file by using the System Exec+.vi?

    Hi
    I have a problem about calling batch file. I know that the system exec is equivalent to "run" in Windows. I called the batch file c:\rtxdos\bs\ch0.bat successfully in the "run" but it didn't work in the LabVIEW program. The dos prompt had an error message "Bad command or file name" and it just happen when I call this batch file in LabVIEW. Why?
    Bill.

    Hi,
    Try to set the "working directory" parameter of System exec.vi to the directory where the batch file is located. It may help.
    Good luck.
    Oleg Chutko.

  • Hi everyone, I've got a question about Itunes. I've noticed that Itunes says to me how many time I've played a specific song since when I've put it on the library. I was wondering if there is a specific shuffle only for the new songs without creating a pl

    Hi everyone, I've got a question. I've noticed that Itunes says me exactly the number of times that I've listened a song since I've put it on the library. Well, I've just put on some new music and I was wondering if there is a way to reproduce only the songs that Itunes nerver played without creating a new playlist.
    Thank you
    Simone

    Welcome to the Apple Support Communities
    This isn't possible, but this is a great idea > http://www.apple.com/feedback

  • Question about reducing PDF file size on export

    I have a large file that is generates a PDF about 75MB when exported with the "[High Quality Print]" preset. However, I can reduce the size down to to under 5MG in Acrobat if I use the Tools>Flattener Preview>[Medium Resolution] setting (image attached). Is there a way to generate this smaller file directly from InDesign? I couldn't figure out how to do this with InDesign's Flattener Preview or Export options, but it is very likely that I missed something.

    Eugene Tyson wrote:
    When you choose Smallest File size, it is still using the PDF 1.6 setting.
    Change this to Acrobat 4 (PDF 1.3) this will automagically flatten the PDF - which means you shouldn't have to do it in Acrobat.
    That should get you a nice small file size, I believe.
    Flattening transparency in InDesign will not necessarily yield a smaller PDF file size. Transparency flattening will not automatically convert placed vector artwork to raster images unless that vector artwork is actually involved with transparency. And even then, whether you end up with a smaller file depends on a number of factors.
    If the reason for the very large file size is indeed very complex vector artwork and you are willing to sacrifice quality, conversion of such vector artwork to raster might yield a significantly smaller exported PDF file. To accomplish that conversion, I would personally suggest converting the most offensive (in terms of file size and complexity) of such files in Illustrator (assuming that they were .AI files) and exporting them as .TIF files (to avoid the potential imaging artifacts of JPEG compression).
              - Dov

  • Questions about "Diff Sequence File With..." function

    Hello,
    I've started working on a project where I'm maintaining a piece of older code written by a since-departed employee of my company.  It's a TestStand 3.0 sequence file calling on Labview 7.0 code. The thing is, there were two of these installations done at different times and, somewhere in the woods between stations 1 & 2, the code base diverged.  Part of it was due to not being able to get exact duplicate hardware for the PXI chassis and part was, apparently, due to the fact the client used the 2 machines to test different UUT models.
    So, I'm looking at copies of the installed code base on the two machines using the diff feature in TestStand.  (If it makes a difference, I'm doing this viewing in TestStand 3.5 since TS3.0 has mysteriously gone corrupt on me at the moment on my main development computer and, if memory serves, you have to uninstall all the later version of TS to reinstall an older version.  An altogether fun process, no doubt, but a little time consuming.)
    Anyway, the first thing I notice is that very many of the sequence steps have different Step Properties.Step ID values that look something like this: "ID#:2vMTp0db002mQDXArddRSA".  Messing with the diff screen showed an option to "Ignore Unique Step Ids" which got rid of these.  Regarding these unique step ID's: When are they generated and do they remain constant on a particular machine?  Beyond mere curiosity, I wonder because another diff is in some of the "On Pass Target" or "On Custom Condition True Target" under certain Step Properties and the value under there looks suspiciously like those unique ID's (i.e. ""ID#randomstuff"").  Are these all dynamically updated at runtime or will I break something by changing those (say if I copy a sequence from one version overwriting it in the other)?
    So, I filtered the unique ID's out.  The next large area of difference is that many, but by no means all, Labview VI calls have a difference under Step Properties > Flexible Labview Adapter Properties > ViCall > Connector Pane Checksum > Value.  Also, in a few other instances, ViCall > error out > Connector Number is different as well.  Does this indicate a different underlying VI?
    There are a few other differences, but I can interpret those.  My goal is to get one sequence file for both machines so the code will be easier to maintain.  I do think that some of the VI's with different Connector Pane Checksums may be different between the two installations since one of the different hardware components required a different driver library.  This leads to a third question, what does it take to use identical sequence files when the underlying VI's might differ?  Is it just the interface needs to be the same?  Like the connector pane has the same geometry and data types for the exposed inputs and outputs?
    Thanks for any help,
    Mike
    Solved!
    Go to Solution.

    I just got off the phone with NI support, so no worries on the answers.
    Short versions:
    The unique ID's are regenerated when a sequence is copied.
    Teststand doesn't need higher versions uninstalled to reinstall an earlier copy.
     Connector Pane Checksum implies a different underlying VI, but having the same connector geometry/inputs/outputs/types should allow you to have a different VI for different installations without different sequence files.
    Still waiting to hear back from support on whether the goto pointers get updated properly when a sequence or portion of a sequence is copied.

  • Question about Custom Shape Files from newbie to PS

    My husband bought me PS CS4 Extended. That said, I have never used PS at all. I have always used PSP. Please don't hate me!
    I have figured out that one loads actions and presets. OK, got that. The question I have is if I can have my Custom Shapes and Actions on a completely different partition? I ask this because there is not enough room on the partition for me to continue adding shapes and such to PS in the program itself. I am figuring that I can since I have tio load them into the program anyway, but am asking to be sure so that I don't screw anything up.
    Another question I have is if I am able to point PS to where all of my plugins are that I already have installed in PSP, which also happen to be on a different partition. In PSP all one has to do is to point the program to where they are and all is good and they can be used within said program. Does PS allow for this also? If not, do I have to re-install all of the plugins into the PS program itself? I just don't have that much room on the partition that my PS resides on because of all of the other pregrams that I have. Also, does everything I load into PS just stay loaded or do I have to reload each time I want to use that particular preset?
    I do hope that ya'll can understand my questions and thank you for any help in advance.

    the benefit of having the presets in the proper folders is that you can select them from the fly-out menus instead of having to search for them using the Load command so yes, you can have them wherever you want. I doubt though that you don't have enough disk space for them, for instance, all the actions that come with Photoshop take up about 200kb, the custom shapes are about 700kb but that's because they come in duplicates. And yes, all that you load up stays in Photoshop until you remove them, no need to reload them at program start. For plug-ins you have the option to set an additional plug-in folder by going to Edit->Preferences->Plug-ins, don't know about needing to install them though as i don't use any

  • Question about changing a file type into another file type

    Hello. This isnt a java question but you guys have been so helpful in the past I hope its ok if I ask this question for a friend.
    How can I import a scriptware file into Screenwriter 2000, or change a .scw file into a .tag file?
    Anyone who can help thanks.

    I know nothing about scriptware or Screenwriter. But, my only advice is to see if Scriptware can export some other file type (not necessarily a .scw file) that Screenwriter can read. Sometimes, when I have two text editors whose native formats are incompatible (like opening a paper typed in a new version of Microsoft Word using an old version of WordPerfect or something), I save the file as an RTF file, rather than in the native format. Maybe something like that applies to your situation, too.
    Hope that helps.
    Jason

  • Question about "compression option" in workbook

    Hello,
    We'd' like to use the compression option in the workbook (with J#).
    I have 2 questions :
    -How to set this option automatically by default for new workbooks ?
    -How to set this option in mass for old workbooks ?
    Thank you in advance for your help
    Best regards
    Nicolas

    The note talks about "optimized storage" for a workbook, which I am assuming is the same as the "compression option" you asked about.
    And I quote:
    "Solving the issue for a specific workbook:
    - Open the specific workbook in BEx Analyzer
    - Open Workbook Settings dialog
    - Check "Use Optimized Storage"
    - Click on OK Button
    - Save the workbook
               Note: As the change is done in the workbook settings, it affects only that workbook.
    Solving the issue for any workbook within a system:
    - Login to the BW system
    - Execute transaction RS_FRONTEND_INIT
    - Add a new Entry: ANA_USE_OPTIMIZE_STG = X
    - Save your change
               Note: After applying this change, all (re-)saved workbooks will be stored with optimized BI metadata."
    Looks to me like it might be helpful, but you can be the judge...
    Bob

  • OSD: different pxe, question about different wim-files

    Hi,
    Please see this question, I'm somewhat confused about the different
    wim files.
    I can see the default winpe.wim and a different wim next to it which has name winpe then environment then number (winpe.sccm0022.wim), what is this file.
    And, like in my post, why can't I use this image to import into a pxe and boot from that?
    Please advise.
    J.
    Jan Hoedt

    Hi,
    What is your goal with this? boot to SCCM and do OS deployment or what is your purpose? when dowloading the boot .wim file from a DP parameters are passed along like MP and so on. So you cannot use that .WIM file and pxe-boot from another PXE solution and
    do OSD from ConfigMgr.
    That is why Johan's unsupported solution would be the way to try it.
    http://www.deployvista.com/Blog/JohanArwidmark/tabid/78/EntryID/54/language/en-US/Default.aspx
    regards,
    Jörgen
    -- My System Center blog ccmexec.com -- Twitter
    @ccmexec

  • I've got some questions about Satellite Pro L300

    1.) How could I Update my Bios? I find the zip- File but no further Information how it works?
    2.) I want to update for more memory. 2GB are less for fast working. Where could I find Informations about the memory controller- e.g. Voltage, Timings... for pass new memory of 4GB.
    3.) My PSSD1E shows me in Windows7 - Systems Hardware one empty SATA- Controller.
    Is it possible to take it optional for an outgoing connection- eg SATA-OUT for extrenal device?
    Sorry for my worst english.

    Satellite Pro L300 is offered with several different hardware configurations. I dont know which one do you have and there is no sense to discuss about this without exact notebook info.
    If you want to have general conversation here than dont claim about this forum.
    To get some precise answers inform us about exact notebook model.
    One more time:
    1
    For all new notebook models Toshiba offers Win update only. That means BIOS update can be done under running operating system. For more details check Toshiba document.
    2
    What you need is just part number of compatible RAM modules. All other information is not so relevant for you. If you want to get this info post exact notebook model.
    You can test what you want but fact is that Toshiba offers list of compatible RAMs you can use with your notebook. All listed RAMs are tested. Other way you can visit KINGSTON page to check their list of compatible models for different Toshiba notebook models. Kingston offers high quality products and all listed RAMs are tested too.
    Who knows which RAMs you have used for your tests? Maybe some cheap no-name products. Many people have used such RAMs and at the end nothing worked.
    3
    Why you complicate the whole situation? For external devices you have available ports. For internal device you have ports on the motherboard. End of the story.
    And yes, visit your local dealer ant talk with him, especially about question number 3.

  • Repaired permissions got a warning about a SUID file that's unrepairable?

    Repaired permissions om my Macbook  and got a warning immediately that ihave a SUID file "systems/library/core has been modified and will not be repaired. There is also a large question mark sign on my finder window---can anybody help me understand what's happening ?

    1. The current updates are installed. Ignore that message.
    2. Command-click it and drag it out of the window.
    (73742)

  • A few questions about executable Jar files

    Hi,
    I have to make an a tutorial system and was going to make it using applets embedded in webpages. This approach causes certain limitations so decided to make it using JPanels that open up as windows on the users computer.
    I intend on compressing all the files (java, images, sound etc) within a Jar file and would like a few questions answering.
    1. How would I make an executable Jar file that when clicked on will load the program on the users computer. Is there some software to do it for me or do I have to do it from the command prompt?
    2. Is using a Jar file the best approach or is there a better way to get my java program to run on other peoples pc's
    3. If I create an executable Jar file on windows xp, will it run on a Linux machine?
    Cheers

    1. How would I make an executable Jar file that when clicked on will load the program on the users computer. Is there some software to do it for me or do I have to do it from the command prompt?The SDK contains all the tools you need. Use the jar command. To make your jar executable, include a manifest file that references your main class.
    2. Is using a Jar file the best approach or is there a better way to get my java program to run on other peoples pc'sA jar will work just fine.
    3. If I create an executable Jar file on windows xp, will it run on a Linux machine?Yes.

Maybe you are looking for

  • Unable to delete photos from iPad(1)

    Hi, Firstly I apologise for the length of this submission but I need to detail all steps taken to date do you folks can see what I have tried ....and failed! I run a kids charity and each year taken hundreds of photos. They are organised into events

  • App Engine XMLP Report with PeopleTools 8.5

    Hi All, I have an issue with creating an XMLP report in App Engine using PeopleTools 8.5 / PSFT HCM 9.1. As Rowsets, XMLDoc objects are now depreciated as a datasource, I am using XML File as the datasource type. In my code, I create an XMLDoc object

  • How to create a System Identifier SID?

    Hello, I am doing a system copy in to a new server with different SID and Hostname. Can anyone suggest a SAP note or method to create a SID for a system? can any link to the script that creates the SYSTEM id will also be useful. Any Help will be grea

  • Question about writing out different types...

    hi, i have a need to write out records that correspond to the following format: String, 25 bytes long, 8 bytes long, 8 bytes int, 4 bytes. for the long and int types i need to write out the actual bytes of these numbers, NOT their string representati

  • Custom XMP Panel with "pulldowns" in Bridge

    Hello, I have a custom XMP panel built that is visible in Photoshop, InDesign, Illustrator, which is nice. I can view this custom XMP panel in Bridge as well, however the fields with pulldown menus don't show in Bridge. Being able to use pulldowns is