Show file size coming from UCM

I need to show the size of a file that comes from Oracle UCM and the file size should be shown in Kilobytes, the file size is in bytes so I've divided in 1024 for the number in kilobytes
I have the following source code and the continuous result being shown in bytes.
Please if you can give me your comments.
thank you very much
<c:set var="nodeArchivo" value="#{cmfn:getNodeById(cptutils.repository[node.propertyMap['BCCH_PUBLICACION_RD:ARCHIVO'].value.stringValue])}"/>
<c:set var="fileKB" value="#{nodeArchivo.propertyMap['VaultFileSize'].value}" />
            <fmt:parseNumber var="fileKBTransf" type="number" value="${fileKB}" />
            <fmt:parseNumber var="fileKBTransf" integerOnly="true" type="number" value="${fileKB/1024}" />           
  <af:outputText id="archDown" styleClass="pesoArchivo" value="#{fileKBTransf}"/>

Hi.
You are mixing '$' and '#' expressions that are evaluated in different phases of the lifecycle.
#{fileKBTransf} is evaluates before of the ${fileKB/1024}
Take care when mixing JSTL and ADF and $ and # expressions .
Anyway try to do it directly:
<af:outputText id="archDown" styleClass="pesoArchivo" value="#{cmfn:getNodeById(cptutils.repository[node.propertyMap['BCCH_PUBLICACION_RD:ARCHIVO'].value.stringValue]) div 1024}"/>
or
<af:outputText id="archDown" styleClass="pesoArchivo" value="#{cmfn:getNodeById(cptutils.repository[node.propertyMap['BCCH_PUBLICACION_RD:ARCHIVO'].value.stringValue]) / 1024}"/>
Regards.

Similar Messages

  • When I send a text message it shows up as coming from my email address not my phone, can i change this

    when I send a text message it shows up as coming from my email address not my phone, can i change this

    another way to change it is :
    go to settings -> phone -> my number (iput your phone number)
    and then do what razmee209 said,
    after you change it, your phone number will authenticate with the operator that you use,
    I hope this could help you,

  • File size goes from 54mb to 214mb for my 250 page pdf portfolio upgrading from 9 to X

    I have a 250 page portfolio created in 9 pro. When I upgraded to X, the file size went from 54mb to 214mb. Anyone know why this would increase by 400%? And, have i made a big mistake upgrading to X? What can be done to keep the file size somewhere near the original 54mb? Each pdf has 1 jpeg and a bit of text.

    Hi "lampmaker". I'd suggest logging a bug for this and being as detailed as possible about the contents of our portfolio. The form for bug reports can be found here https://www.adobe.com/cfusion/mmform/index.cfm?name=wishform&promoid=EWQQL

  • My i pad was purchased by my husband using his credit card but now when i send mails using icloud account to shows like is coming from him. how can i change his name to mine

    my i pad was purchased by my husband using his credit card but now when i send mails using icloud account to shows like is coming from him. how can i change his name to mine

    MacBook Airs won't run Classic, nor will Classic connect to iCloud accounts.    You will need your Mac OS X version to answer the question involved.    Go to Apple menu -> About This Mac, and post in the appropriate forum in the link below:
    https://discussions.apple.com/docs/DOC-2463

  • IMesssage has stopped using my cell phone number and is only showing email addresses -- in other words, when I text, it is showing up as coming from an email address, even when i use my phone.   Laptop

    iMesssage has stopped using my cell phone number and is only showing email addresses -- in other words, when I text, it is showing up as coming from an email address, even when i use my phone.   The laptop and phone are still synchronized and messages are showing on both devices.
    I've seen this before and was able to fix in Settings, but that is not working now.
    Please help.  Thanks.

    Did you replace your iPhone with some other kind of phone? If your phone number is no longer connected to an active iPhone, you can't use it to message from your Mac.

  • Reducing file sizes going from LR to PS

    Hi - just wondering how to reduce file sizes when I edit from LR4 into PS 5.
    I was working on some jpg files and they are around 5mb but when I open them in PS it shows them to be 50mb. ... Just wondering why and how to open them so they are not 10 times bigger?
    Thanks
    Rob

    What Dde said. I'll add that if you have a new camera supported in ACR 7 or 8 that isn't in ACR 6, I think "Open Anyway" will open Photoshop if it's not already open, but then might not do anything after that becaus PS/ACR can't open the raw file. Figured that out after a lot of confusion about why Photoshop just sat there.

  • File size limitation in UCM VCR Adaptor

    Hi,
    Can I retrieve a file of say 2 MB or 20 MB from UCM as a content through UCM VCR Adaptor?
    Is there any limit on size of file retrieving from UCM through UCM VCR Adaptor?
    Thanks in Advance,
    Venu--

    Hi Venu,
    UCM does not impose any limit on file size, I have personally supported 250 MB sized documents.
    I hope the same would also apply for any connector that UCM provides.
    Probable gray areas while handling large sized documents are
    1) The choice of Hardware
    2) The choice of technology to retrieve Docs from UCM.
    cheers,
    swapnil

  • How do I show file size in the Finder icon view for images?

    How can I add the file size to the icon view "File Info" for images?
    I know how to get it to display the image size under View Options. In this mode it shows pixel dimensions for some images (not for svg or pdfs tho) and file size for some non-images (rar, zip, but not txt or plain text files).
    Is there some plist I can modify?

    Just found the answer in a post with this subject: 
    How Do I Change the Mailbox Font Size in the Sidebar?

  • How to make PDF file size smaller from an Illustrator file without changing the quality or size (length and width) of the file?

    Is there a way to make a 30x42 size (40 GB) Illustrator file as a PDF but make the file smaller in size (able to email to clients) with out compromising the quality of the file or the size of the file?

    If you are working in RGB you can embed a colour profile. Embed ICC Profiles is one of the Acrobat save options. It will increase files size dramatically.
    When you save your pdf you can choose the compression method for placed images. Default is ZIP which is really no compression at all for pixel images. Instead you should opt for JPG compression (of varying degree according to how sensitive the images are to compression).
    You should also examine the other Acrobat save options. To minimize file size you should not have any of the options checked (Preserve Illustrator Editing Capability, Embed page Thumbnails etc. etc.).
    40 gigabytes for a file like the one you show is ridiculous. Did you maybe embed the placed images? If so, don’t. Keep them linked unless you really need to embed them.

  • What is the best seeting to export as smaller file size AVI from FCP?

    Hi, I know the topic sounds very similar to many of AVI post it had been up, however, somehow, I do not find the right answer that I'm looking for.
    I have a couple animation created from QT as "image sequence".
    I simply want to export as avi file.
    Here is the question I have.
    1. If I choose DV/DVCPRO-NTSC, and choose scan mode as Progressive, I get interlacing looking quality video.
    2. If I choose compressor type as "NONE" then even I set as "least" quality, the file size will be over 1G..although, that's the quality I'm trying to archive.
    Is there any other setting I can choose to get good quality with lower file size avi? I have seen or download avi file on the net with very good quality and still download-able file size...

    What is the QT method? (Export from QT Player?)
    Yes, 10 hour plus is ridiculous. I'm guessing that there was either something wrong with your Internet connection and/or at the You Tube end of the uploasd/compression process.
    Innocentius and Hugh are right; using Compressor (or MPEG Streamclip) and using YT's  uploader is the most reliable workflow.(Since Google changed the account verification process, there have been reports of upload problems using Share>You Tube.)  In addition, you have more control over the quality of your movie. You can create multiple custom settings in Compressor and then Share > Compressor custom settings. It will go faster if you export out of FCP as a Pro Res 422 file; should take 3-4 minutes top. The Web encode for a 3 minute video in Compressor might take 15 minutes, depending on your system. MPEG Streamclip is probably a little faster.
    Russ

  • To retain the same file name in target(File) that coming from source system(AS2).

    Hi All,
    I have a requirement to send the two file from the third party system(GXS) to SAP ECC via SAP PI(version - 7.4). We are using AS2 adapter at the sender side to pick the file and using File Adapter to place the file in ECC.
    Its a pass through scenarion(No ESR part is used).
    Requirement:
    We are going to get 2 files ->Example:  one from Axis and another one from ICICI -> each bank file will have a file name ->
    We have to post the file at the target system with the same name as source file name, the source file name could come dynamically(with diff time stamp).
    Please let me know, Is it possible to achieve the above requirement(we have to retain the file name in target that coming from source system) with Sender AS2 adapter, If yes then please suggest the best approach.
    Regards,
    Pradeep Bawlia

    Hi Guys,
    The above requirement is solved now.
    Solution - I used java mapping for extracting the same source file name and assignning the same to the target system.
    Code:
    public class ExtractFileName_ASMA extends AbstractTransformation{
    public void transform(TransformationInput in, TransformationOutput out) throws StreamTransformationException  
    DynamicConfiguration conf=in.getDynamicConfiguration();
    DynamicConfigurationKey key_AS2FileNmae = DynamicConfigurationKey.create("http://sap.com/xi/XI/AS2/AS2", "AS2Filename");
    DynamicConfigurationKey key_FileNmae = DynamicConfigurationKey.create("http:/"+"/sap.com/xi/XI/System/File", "FileName");
    String As2FileName=conf.get(key_AS2FileNmae);
    conf.put(key_FileNmae, As2FileName);
    try{
    byte b[]=new byte[in.getInputPayload().getInputStream().available()];
    in.getInputPayload().getInputStream().read(b);
    out.getOutputPayload().getOutputStream().write(b);
    catch(Exception e)
    2. Another solution we can use the graphical mapping and need to use the dynamic config UDF at mapping level to acheive this requirement but here is one drawback - we need to do content conversion is this case.
    In case of Java mapping, no need to play with source file.
    WITHOUT USING ESR, WE CAN NOT ACHEIVE THIS REQUIREMENT.
    Regards,
    Pradeep Bawlia

  • Show file size in Cell Extras? (Either Compact or Expanded, or anywhere in Grid for multiple images simultaneously)

    I've searched and seen several suggestions saying to change Metadata to Exif & IPTC to see the file size, but that's for only one image at a time. Under Cell Extras (both Compact and Expanded) I see options for Megapixeps, Cropped Dimensions, File Name, Extention, and a bunch of other options, but no file size. I suspect this is because file size isn't a metadata field and simply a file attribute (that may be incorrect, but regardless...) is there really no way to have file size visible in the thumbnail cells in Grid view in the Library? I'm trying to reduce redundancy and viewing file size of multiple images at a glance based on my Library Filter criteria would be a huge help. Thanks to anyone who can help sort me out!

    Sure. I have a catalog with 22,000 images indiscriminately imported from hundreds of folders and multiple drives from this year alone (partially lost a RAID array to a corrupt index and recovered a dump of the files so I'm terribly disorganized juggling emergency redundancy backups wherever I had 50 gigs here, 100 gigs there, and working to clean up and organize my photos one year at a time ), including raw, jpg, websized jpg, png, tiff and psd (flattened and with layers/adjustments) and am now trying to identify my keepers and delete unnecessary files. I have 22 terabytes of personal files and photography spread chaotically and while I now have proper discipline when saving variants, I didn't always and want to remove unneeded, rejected, and duplicate images. I don't expect to be caught up for months or longer depending on my free time and sanity. Unfortunately, it's not as simple as keep the raw delete the rest. Sometimes I have multiple PSD documents with different version names and edits, sometimes with multiple layers, and I have to use a variety of information to identify which one is indeed the correct one to keep...or open them all/both.
    Often, file size can be an indicator for me and aids in making the decision more quickly. For instance between 2 psd files with the same Megapixles I'm often able to identify the flattened version vs the layers intact version by file size if it wasn't properly noted in the filename, which unfortunately due to a combination of bad or evolving practices and being tired or rushed happens more often than I'd like to admit. One I just came across that brought me here searching was 3 similarly named and appearing PSD files of a panorama, all with the same MP/dimensions. One was flattened, one was the original stitch, and one was flattened with a few masks, adjustments, and an extra layer, and being the one I'd want to keep. Filesize helped me quickly identify which was which. Also sometimes dimensions are misleading, like when a panorama is first created and uncropped, its dimensions are larger, but a tighter cropped image with multiple layers and a larger file size indicates to me that it is newer and more finished, even though smaller dimensions typically indicates a crop and may not be a 'master' copy. Additionally, 2 images with different names but the exact same file size are very likely duplicates (at least in my workflow) but 2 similarly looking images with the same dimensions could be retouched/not, sharpened/not, have noise reduction/not, and I'd have to view them in detail to determine if they were in fact identical. For my purposes (since these are my personal fine art images & I have the raw files incase I occasionally mess up) I'm often willing to trade an educated guess for my time. Seeing identical file sizes on 2 apparently similar images is good enough for me to delete one.
    I can select them individually and check...it's not a horrific problem. But it would save me time so I was hoping I had simply missed how to view that. My reasoning is 'why not' have the option available with all the others? Me personally, I don't care about megapixels when I already have the dimensions, that's just redundant and honestly much less helpful than LxW. File size would be an additional tool I would use, though. There are other examples but the main thing is that I do spend time checking filesize, and specifically when comparing multiple images, so having it displayed in the cell would be a time saver for me.

  • Can't download files, shows file size is "-1bytes"

    Hello, recently when I try to download files they do not start up immediately like they used to, and when they do it shows the file size of the file is "-1bytes". But, when I use a download manager to download it, it downloads just fine.
    This isn't just 1 website in particular it happens for all the websites. I tried uninstalling FireFox, and installing it again and I still can't download anything.
    Example:
    [http://i44.tinypic.com/6nqjbd.png ScreenShot] of the download, when I try to download FireFox.

    That may be a bug. Firefox shows a size of -1 if the size is unknown instead of suppressing the file size.<br />
    You can ignore that if the file down;loads fine.

  • How to create a smallest file size pdf from indesign CS4 document

    How to create a smallest file size pdf (suitable for upload to a website) from indesign CS4 document which contains multiple illustrator CS4 illustrations.
    I have chosen the "smallest file size option" but the pdf file is over 30MB, can anyone help please.
    Thank you

    One trick is to
    Set the placed graphics to have a transparency of 99.9% (you can do this with Find/Change and select Objects)
    This is enough to force the graphics throught the Transparency Flattener
    Next set the Transparency Blend Space to RGB (Edit>Transparency Blend Space)
    Next set a custom Transparency Flattner Preset Edit>Transparency Flattner
    Next
    Use File>Export and choose
    Smallest file size
    PDF Compatibility Acrobat 4 (PDF 1.3)
    In Advanced Section - go to transparency and selec the new Flattener Preset you created.
    *this will convert your vectors to raster, but it should reduce your file size

  • How do I keep the same file size, going from tiff to jpg?

    Going from tiff to jpg, how do I keep the same file size? Seems like I am not able to save the jpg´s in 16-bits... Thanks!

    file size? you mean dimensions or file bytes ?
    Jpg is compressed so it won't be the same
    Tiff is losless / lossy format to get the better quality
    as for 16bit jpg the format doesnt support it

Maybe you are looking for