Programmatically Retrieve files sizes

Hi there
Given a portal file item url (read in the apache logs), how can I retrive its size with SQL, in portal 9.0.2 ?
It appears in the "list" mode of pages, maybe there's a stored proc or table for this ?
Thank you
A.

Thanks for you reply.
wwdoc_document$ contains some fields :
- name (for instance 373306.JPG)
- filename (for instance "my_file.jpg")
- real_filename
The problem neither "filename" nore "real_filename" are unique, because when a user updates a file, they remain the same, and only "name" is changed (I guess it contains an internal and unique portal file name).
My problem is I can't retrieve the corresponding row in that table from an url. I need to know at least the "docid" from an url, or the (unique) "name" from an url, and I can't find the table(s) to get this.
Regards
A.

Similar Messages

  • How can I programmatically retrieve the CVI Target Version Settings (e.g. File Version, Copyright, etc) in my CVI application?

    Is there any way that I can programmatically retrieve the CVI Target Version Settings (e.g. File Version, Copyright, etc) in my CVI application?
    I am using LabWindows/CVI version 7.0.
    The settings that I'd like to retrieve within my application are those that are set under Build | Target Settings... | Version Info...
    e.g.
          File Version
          Product Version
          Company Name
          Legal Copyright
    Thanks,
    Darren
    Message Edited by Darren Draper on 01-16-2006 02:03 AM

    Well, "File access permission denied" claims for an authorization problem . I suggest you double check file attributes in the project directory: it could be that you have downloaded this example from a CD and the read-only attribute has not been cleared.
    The library does not reside in the example folder: as you can see by selecting View >> Show full pathnames in the project window, it should be in ....CVI\sdk\lib folder.
    Proud to use LW/CVI from 3.1 on.
    My contributions to the Developer Zone Community
    If I have helped you, why not giving me a kudos?

  • Reducing PDF File Size - Adobe SDK C#

    Hello and Good Morning,
    What i am wondering, is if there is a way to use the function from the Adobe Acrobat Pro Software "Document >> Reduce File Size" programatically in C# using the Adobe SDK 8.2 ? I already have it so i can retrieve adobe documents/pages i just need to apply this method from the software. If this is possible or you know how to reduce file size it would be greatly appreciated!
    Thanks,
    -Mike

    Regarding to this question http://forums.adobe.com/message/4261273#4261273
    Is there a way to make Batch Processing to save/commit after each file is processed?
    Currently it processes all files in a specific folder and then saves them to the output folder, the save part occurs after all files have been let's say OCR for example, but not after each file is done OCR. This process cannot be automated as with this functionality as when a an error ocurrs in one of those files, it displays an popup message that actually prevents the other successfully processed files to be saved.

  • How to get the file size (in bytes) for all files in a directory?

    How to get the file size (in bytes) for all files in a directory?
    The following code does not work. isFile() does NOT recognize files as files but only as directories. Why?
    Furthermore the size is not retrieved correctly.
    How do I have to code it otherwise? Is there a way of not converting f-to-string-to-File again but iterate over all file objects instead?
    Thank you
    Peter
    java.io.File f = new java.io.File("D:/todo/");
    files = f.list();
    for (int i = 0; i < files.length; i++) {
    System.out.println("fn=" + files);
    if (new File(files[i]).isFile())
         System.out.println("file[" + i + "]=" + files[i] + " size=" + (new File(files[i])).length() ); }

    pstein wrote:
    ...The following code does not work. Work?! It does not even compile! Please consider posting code in the form of an SSCCE in future.
    Here is an SSCCE.
    import java.io.File;
    class ListFiles {
        public static void main(String[] args) {
            java.io.File f = new java.io.File("/media/disk");
            // provides only the file names, not the path/name!
            //String[] files = f.list();
            File[] files = f.listFiles();
            for (int i = 0; i < files.length; i++) {
                System.out.println("fn=" + files);
    if (files[i].isFile()) {
    System.out.println(
    "file[" +
    i +
    "]=" +
    files[i] +
    " size=" +
    (files[i]).length() );
    }Edit 1:
    Also, in future, when posting code, code snippets, HTML/XML or input/output, please use the code tags to retain the indentation and formatting.   To do that, select the code and click the CODE button seen on the Plain Text tab of the message posting form.  It took me longer to clean up that code and turn it into an SSCCE, than it took to +solve the problem.+
    Edited by: AndrewThompson64 on Jul 21, 2009 8:47 AM                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

  • PDF/Attachment File Size Limitation

    Question: Does anyone know of a specific upper limit on email attachment file sizes, or how to overcome them? I love that iPhone email supports viewing PDFs, and got some smaller ones to be delivered and display just fine, but when I tried to email a 10MB PDF to my iPhone it really caused a mess (first attempt locked up my iPhone and required a reset, second attempt the iPhone email client had trouble retrieving the whole PDF from the POP server). I finally gave up.
    Note to Apple (hope you're watching...): Please support large email attachments, especially PDF. FYI: the 10MB PDF I was trying to push to the iPhone was in fact the iPhone User's Guide that I downloaded from the Apple web site -- too bad this "bug" prevents an iPhone user from having the iPhone User Guide on the iPhone itself, huh? Also, please consider adding password support for locked email attachments (like password-protected PDFs).

    Thanks, but what sort of infrastructure are you referring to? There are 8500 rows of data for this invoice at three levels which is not large, but some fields are 240 characters long.
    I'm not getting an Out of Memory type of error. In fact, I'm not getting any errors, just that there is no output. pdf-compression is set to true. What else could I check?

  • Fetching file size using CAML query in Javascript client object model

    Hi,
    I am using the Javascript client object model to retrieve contents of a document library.
    I have a document library, which contains a folder "Folder1" . "Folder1" has a zip file. I would like to get the file size of the zip file.
    I have tried the below code, but not sure, how to fetch the file size.
    function FetchImage() {
    var clientcontext = new SP.ClientContext.get_current();
    var oweb = clientcontext.get_web();
    var olibrary = oweb.get_lists().getByTitle(DocLibrary);
    var query = new SP.CamlQuery();
    query.set_folderServerRelativeUrl("Lists/DocLibrary/folder1/");
    folder = olibrary.getItems(query);
    clientcontext.load(folder, 'Include(Title,ContentType, FileLeafRef,FileDirRef,File)');
    clientcontext.executeQueryAsync(Function.createDelegate(this, this.RenderDataOnSuccess), Function.createDelegate(this, this.RenderDataOnFailure));
    function RenderDataOnSuccess() {
    var ListEnumerator = this.folder.getEnumerator();
    while (ListEnumerator.moveNext()) {
    var currentItem = ListEnumerator.get_current();
    if (_contentType.get_name() != "Folder") {
    var File = currentItem.get_file();
    if (File != null) {
    // Fetch file size
    How to fetch the file size?
    Thanks

    <script>
    function getSize()
            var myFSO = new ActiveXObject("Scripting.FileSystemObject");
            var filepath = document.upload.file.value;
            var thefile = myFSO.getFile(filepath);
            var size = thefile.size;
            alert(size + " bytes");
    </script>
    http://social.msdn.microsoft.com/Forums/en-US/e5d2ff3d-01c7-4cc0-a081-29a4dfbb0fad/getting-the-sharepoint-list-attachment-size-using-javascript?forum=sharepointcustomizationlegacy

  • Processing Multiple Files for more than 100 Receive Location - File Size - 25 MB each file, file type DML

    Hi Everybody
    Please suggest.
    For one of our BizTalk interface, we have around 120 receive locations.  We are just moving (*.dml) files from the source to destination without doing any processing.  
    We receive lots of files in different receive locations and in few cases the file size will be around 25 MB and so while moving these large files, the CPU usage is varying between 10% to 90+% and the time consuming for this single huge file is around
    10 to 20 minutes.  This solution was already in place and was designed by the previous vendor for moving the files to their clients.  Each client has 2 receive locations and they have around 60 clients.  Is there any best solution for implementing
    this with in BizTalk or outside BizTalk? Please suggest.
    I am also looking for how to control the number of files which gets picked from the BizTalk receive location.  For example, If we have say 1000 files in receive location and we want to pick at a time only 50 files only (batch of 50) then is it possible?
    because currently it is picking all the files available in source location, and one of the process is dropping thousands of files in to the source location, so we want to control  the number of files getting picked (or even if we can control to pick the
    number of KBs).  Please guide us on how we can control the number of files.

    Hi Rajeev,
    25 MB per file, 1000 files. Certainly you got to revisit the reason for choosing BizTalk.
    “the time consuming for this single huge file is around 10 to 20 minutes”
     - This is a problem.
    You could consider other file transfer options like XCopy or RobotCopy etc if you want to transfer to another local/shared drive. Or you can consider using SSIS
    which does comes with many adapters to send to destination system depending on their destination transfer protocol.
    But in your case, you have some of the advantages that you get with BizTalk. For your scenario, you have more source systems (more Receive locations), with BizTalk
    it’s always easier to manage these configurations, you can easily enable and disable them when a need arise. You can easily configure tracking; configure host instances based on load etc. So you can consider following design for your requirement. This design
    would suit you well since you’re not processing the message and just pass it through from source to destination:
    Use a custom pipeline component in the Receive Locations which receives the large file.
    Stores the received file into disk and creates a small XML metadata message that contains the information about where the large file is stored.
    The small XML message is then published into the
    message box db
    instead of the large file. Let the metadata file also contain the same context properties as the received file.
    In the send port, use another custom pipeline component that process the metadata xml file, retrieve the location of the disk where the file is stored, access the file and send it to destination.
    Read the following article on this design..
    http://www.codeproject.com/Articles/180333/Transfer-Large-Files-using-BizTalk-Send-Side
    This way you don’t need to publish the whole message into message box DB which would considerably reduce the processing time and utilises host instance to process
    more files. This way you can still get the advantages of BizTalk and still process large files.
    And regarding your question of restricting the Receive location to handles the number of files from receives location. No it’s not possible.
    Regards,
    M.R.Ashwin Prabhu
    If this answers your question please mark it accordingly. If this post is helpful, please vote as helpful by clicking the upward arrow mark next to my reply.

  • Large file size increase when editing in PS3

    I shoot mostly JPG with most file sizes in the 5MB range. Today I sent 3 files to PS3 for auto alignment and blending to a panorama. When complete, the resulting PSD file back in my Lightroom library is 495MB. When I export the PSD panorama as a JPG for printing a 9" x 36" with 180 dpi the resulting JPG is only 6.1MB. I imported the 6.1MB JPG panorama back into Lightroom for comparison with the 495MB PSD file and they look nearly identical even at 100%. Will someone please explain to me what is happening to cause these remarkable file size changes ? Any reason other than the time it takes not to replace the PSD file in my library with the smaller JPG when finished with the process ?
    Powerbook G4 - 1.67GHz - 2GB SD Ram; OS 10.4.11; Library on external drive; D300

    jpeg is a lossy compression that uses an algorithm based on human vision research that gets rid of information in the file that we cannot generally really see and compresses color ranges that we are less likely to see changes in (typically reds) more than colors our eyes are very sensitive to (yelow and green). At least when you use a high quality setting. PSD on the other hand, uses a lossless compression algorithm that retains ALL information in an image regardless of whether you should be able to see it or not. Now sometimes you might want to do an edit that for example lifts up shadows. If you started with a jpeg, that information might already be gone, but when you saved as a psd, you might be able to retrieve it as the compression algorithm did not already throw away the information. Another example is subtle gradients in certain colors, such as blues or reds. Say you want to make the color more saturated. You're likely to start seeing banding with the jpeg, while you'll probably get good results with a losslessly compressed file.
    Lastly, the psds Lightroom writes are typically 16 bits, which means again more precision. They can also contain layers such as adjustment layers, which allows you to later go back on your edits. Jpeg cannot do any of these things. It might be alright to store a finalized file as jpeg, but be aware that you'll be limited to what you can do with them if you change your mind. Harddisk space is supercheap nowadays.

  • FTP adapter : file size

    Hi,
    I have a requirement to move file (unread) from remote server to local and capture the file size for logging purpose. I have modified my jca file to use FTPIoInteractionSpec and FTP working fine.
    To get the file size, I tried using jca.ftp.size property but it returns null as response.  Can you please suggest if there is any other way to get file size without reading the file?
                <bpelx:fromProperties>
                    <bpelx:fromProperty name="jca.ftp.Size" variable="size"/>
                </bpelx:fromProperties>
    Thanks in advance!

    Hi,
    It's looking like retrieving the file size is not supported by FTPIoInteractionSpec then...
    You can try and the file listing operation to get the file size... It surely brings the file size for FileAdapter, but I've never tried with FtpAdapter, try and let us know please...
    http://docs.oracle.com/cd/E28280_01/integration.1111/e10231/adptr_file.htm#BABEDEGC
    Cheers,
    Vlad

  • Updateing linux-ck-atom-headers from repo-ck: file size exceded

    I'm not sure what this error means, I have 2.9 g left on the root partition
    ~$ sudo pacman -S linux-ck-atom-headers
    resolving dependencies...
    looking for inter-conflicts...
    Targets (1): linux-ck-atom-headers-3.3.4-3
    Total Download Size: 4.69 MiB
    Total Installed Size: 35.79 MiB
    Net Upgrade Size: 0.00 MiB
    Proceed with installation? [Y/n] y
    :: Retrieving packages from repo-ck...
    error: failed retrieving file 'linux-ck-atom-headers-3.3.4-3-x86_64.pkg.tar.xz' from repo-ck.com : Maximum file size exceeded
    warning: failed to retrieve some files from repo-ck
    error: failed to commit transaction (download library error)
    Errors occurred, no packages were upgraded.

    Very weird.  No errors for me.  Try again?!
    sudo pacman -Syy && sudo pacman -S linux-ck-atom-headers
    $ sudo pacman -S linux-ck-atom-headers
    resolving dependencies...
    looking for inter-conflicts...
    Targets (1): linux-ck-atom-headers-3.3.4-3
    Total Download Size: 4.68 MiB
    Total Installed Size: 35.64 MiB
    Proceed with installation? [Y/n]
    :: Retrieving packages from repo-ck...
    linux-ck-atom-headers-3.3.4-3-i686 4.7 MiB 511K/s 00:09 [#####################################] 100%
    (1/1) checking package integrity [#####################################] 100%
    (1/1) loading package files [#####################################] 100%
    (1/1) checking for file conflicts [#####################################] 100%
    (1/1) installing linux-ck-atom-headers [#####################################] 100%

  • File sizes on shared reviews are becoming quite huge... how to reduce?

    We have many .pdf's that are shared out for review for users to make comments on.  It appears that every single stroke is being recorded as a markup which may be causing the huge increase in the .pdf file size.  Is there a way to condense these comments, or make acrobat only record a series of commenting under a single user? 
    Some of these .pdfs jump 500kb just from a few boxes and lines drawn.
    Any help?

    Ok these are P&ID's.  (Process and Instrument Diagrams)  So yes in a way they are CAD drawings. 
    They start out around 50-60kb's.  Then people will come in do mark-ups on them, sometimes drawing in boxes, small valves, pumps, etc.  And will add text comments against these.
    Eventually with enough comments the size starts getting up into the 600-700kb range.  This creates a burden on our oversea workshares who have to retrieve these huge file sizes.  We also have a worry that the .pdf will start dropping comments once the file size gets too large as other projecs before us have reported.

  • Web Inspector how to see total file size transferred to browser

    Hi
    After seeing several tutorials with Safari 4/5 I have bin looking for the total file size that is transferred to the browser when loading a website.
    These statistics where easy to find on the old Web Inspector. Does anyone know where I can find this now?
    It would be a very big help! Thank you for your time!

    Does ScriptingListener.plugin record AM code for this specific step?
    No. When you specify the desired file size, PS immediately computes the required compression/quality value necessary to achieve that desired size. The AM code has only that computed Quality value and not the desired file size.
    In other words, you still can't programmatically specify the desired file size.
    As far as slices, I don't have a clue. I've never had the need to use them.

  • Software Update File Size Different than Apple Downloads File Size

    Background:
    I am running software update and it retrieves the update for "MacBook, MacBook Pro Software update 1.1" File size is listed as 768K. When I go to the Apple Downloads page for this update, the file size is 979K.
    Download ID is 16618 and URl is http://www.apple.com/downloads/macosx/apple/macosx_updates/macbookmacbookprosoft wareupdate11.html
    Question:
    Is this discrepancy normal based on the way that Software Update calculates file size or should I be concerned? There is no hash to confirm integrity of the file.

    File size, and the volume of space it takes up are 2 different things. Space will very from computer to computer. Chances are, the larger the drive the more space it takes up. Reason? The file system (HSF + on macs with Leopard). The file sytem divides the drive into specific number of sections. That number may be 10 M, say. So, even if you have a thumbnail that is 4 kb, it will still require the minimum size of the file system. Make sense? There is a lot of wasted space on very large drives.
    Note: Leopard is set up to use a new file system that apple may soon adopt. It will not use the division method HFS + uses, and so will save a lot of space, if adopted.

  • Database Executable File Sizes

    I am doing some work for a large company, and we are trying to find exactly how many instances of Oracle databases they have installed. They want to verify they have proper licensing and create an upgrade path to get everyone up to date. We have used a scan tool to get Registry and directory structure and file info from all devices. But we need to know what to search for as far as executable file sizes for various products. We also need to do this for windows (several versions), linux, unix, aix, etc.
    Does anyone know how I could find this information?

    Oracle doesn't license per instance.
    Your license is either per Named User, or per Universal Power Unit.
    Likely the information you are retrieving is irrelevant.
    Executable file size is irrelevant too.
    Sybrand Bakker
    Senior Oracle DBA

  • Web.Show_Document - Is there a file size limitation?

    It appears that Web.Show_Document has a problem displaying large .pdfs.
    Example: A .pdf size of *2505 KB* would not display, however I compressed the .pdf to *1172 KB* and the report displayed using web.show_document successfully.
    I am displaying the .pdf in an Oracle forms using web.show_document. The user presses a button (View Report) and it displays the report. Except, now it is not displaying reports close to 2000 KB in size.
    The error says **"Exhausted Resultset"**
    Is there a file size limitation with web.show_document?
    Environment Background:
    Forms [32 Bit] Version 9.0.4.1.0 (Production)
    Oracle Toolkit Version 9.0.4.1.0 (Production)
    PL/SQL Version 9.0.1.5.1 (Production)
    Report Builder 9.0.4.1.0
    ORACLE Server Release 9.0.1.5.1
    Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - 64bit Production

    As already mentioned, WEB.SHOW_DOCUMENT has nothing to do with file size. This command simply sends a url to the system's default browser. There is no Oracle magic here.
    To the problem, you said:...The error says **"Exhausted Resultset"**Where are you seeing this message?
    Is Forms generating this message?
    Is this a custom message?
    Is this the complete message text?
    Is there an error number?
    This does not appear to be a Forms generated error message.
    I would suggest your store a large file in the same location as where your reports are located. The file should be of the same format (i.e. pdf). Open a browser and manually enter the necessary url to retrieve the content. I suspect the same problem would reproduce IF you believe the problem only occurs when the form calls WEB.SHOW. If it does reproduce then you have at least simplified the problem to a client browser requesting a document from a server.

Maybe you are looking for

  • Should I "restore" a new macbook pro retina from a time machine backup of old mackbook pro?

    I'm considering buying a new Macbook Pro Retina. 15". Now I'm using a 2007 2.4 GHz Core 2 Duo MBP 15" running Lion.  It works fine most of the time. Occasionally an application will freeze and I need to force quit. It seems like the most convenient o

  • Looking for specific case for iPod touch to

    I saw this awesome case for an iPhone, it was pretty thick, made of rubber I think. The feature that blew me away was that in the back panel of the case was a place to wind up the ear phone cord, and two notches for the ear buds to snap in, and they

  • What is the best type of xml storage for max performance in 9i r2

    We have many schema based xml's of 1MB in xdb (9.2.0.5) and our database is getting slower by every new xml delete_resource (300 sec) and create_resource (300 sec ) take a long time and if I ftp a schema based xml out the xdb takes a long time ( 200

  • Open photos in Photoshop Elements

    This question was posted in response to the following article: http://help.adobe.com/en_US/lightroom/using/WS30BB1A73-0A01-4072-978C-56C8DE443A03.html

  • End User Training Doc

    Hi All, Can anyone send me the End User Training Doc to my id [email protected] its little urgent to me i will appreciate in SDn way thanks in adv