Ftruncate doesn't incress the file size

Hi,
I'm trying to incress the file size using ftruncte, the function is not returning any error (errno = 0) but the file size still have the old size.
Any idea anyone!!!!
I'm runing my application in solaris 8 with the lates patches in E3500 server

Thanks for the reply I did found the problem. part of my code was overrating piece of memory and changing the value for the FD.
Thanks

Similar Messages

  • How to check the file size before loading it to the context

    Hello,
    I have an application to upload a file and write it to the server using the FileUpload UI and IWDResource Interface.
    I would like to limit the size of the file the user is uploading to, say, 2MB.
    The problem is that the current API doesn't allow me to check the file size before I store it in IWDResource. The API available for IWDResource:
    IWDResource resource = ...
    InputStream stream = resource.read(false);
    size = stream.available();
    Is working on the file only AFTER storing it in the context and the server's memory. This way, if a user decides to upload 1GB file for example, he can easily crash the server.
    I am already familiar with <a href="https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/00062266-3aa9-2910-d485-f1088c3a4d71">this</a> arcticle but it doesn't answer this question as well, all it does is calculating the file size only after storing it in the context.
    Any ideas...?
    Roy

    Hi Ram,
    Have you activated your Objects ?
    You need to activate your objects in order to see them in RWB.
    Thanks & Regards,
    Varun Joshi

  • Opening up an Excel output takes a lot of time whenever the file size is la

    Hi All,
    We have some BI Pub reports with excel output format. These files have records in the order of thousands. The file sizes are > 2MB. Its taking a lot of time to open such files. Does anyone have any idea how can we get around this problem ??
    Thanks in advacne,
    Venkatesh N

    Another point is that BIP doesn't create a native/binary Excel file but an XML output. When you open this XML once and save it again as *.XLS it's size will decrease significantly and Excel will open it much faster.
    This applies to Excel 2000 - 2003, I don't know how it works with Office 2007.
    Regards,
    Stefan

  • How can I reduce the file size of a pdf when exporting?

    I don't want to just choose between high quality print or smallest file size.
    I want to export it from 60MB to 40MB.
    Can I do this manually? When I use smallest file size the quality is too low and the content looks bad.
    But high quality print exports my PDF at 60MB which is too big.

    You cannot simply legislate the size of a PDF file. If you content is primarily text and vector, there is not much at all you can do to reduce PDF file size other than to cut out content. Otherwise, the only other variables are those of downsampling and compressing the raster images from your content.
    You must be very careful in choosing the PDF export settings. The “smallest size” settings yield PDF files that realistically really are not fit for printing and may mess up any CMYK colors. The “high quality print” and “PDF/X-4” settings yield best print output, but yield the largest PDF files since they do less image resolution downsampling and only the maximum quality lossy JPEG compression.
    I would recommend that you start with either the “high quality print” or the “PDF/X-4” settings and make a custom set of export settings. Assuming that you aren't going for offset or gravure printing, change the color image and grayscale image downsampling values from 300 and 450 to either 200 and 275 or no less than 150 and 225. If that doesn't give enough file size reduction, change the compression image quality from “Maximum” to either “High” or no less than “Medium.” Beyond these changes, you may end up with PDF files that will neither print nor display with any reasonable quality.
            - Dov

  • How can I keep the file size small when I render a .mov file to video in PS entended CS4?

    Hi,
    I haven't worked with video in Photoshop before and I am having the following issue:
    I imported a .mov file into photoshop. I trimmed the file by moving the start and finish points to the relevant points on the timeline. I then cropped the image to get rid of unwanted footage on the edge of the screen. I then selected export - render video. On the panel I chose to select only "currently selected frames" as the range and I chose "Quick Time Movie" as the file type. When I check the properties of my newly rendered movie the file size has increased by several times. The file sizes are now much too large.
    I know that I must need to alter some of the render settings but having tried altering many of the settings the result is always the same - a very large file size that is much bigger than my oringinal file.
    If anyone can let me know how I can carry out a simple crop & trim on a .mov file and end up with a smaller more compact file after rendering the video I would really appreciate it. Thanks in advance!

    Hi Marion,
    Thanks very much for your message. I have downloaded that program and it's definitely handy for examining the details of the original file. You mentioned in your message about not having to recode the file - The file I'm editing is originally from a Q3 Zoom video recorder and I can use their in-built software (handyware) to trim the file - this doesn't recode the file and so the file size just reduces by the required amount. Unfortunately there is no facility to crop the file with this software - I've looked for other software that would allow cropping without having to recode the file but I haven't found anything suitable for a simple procudure like this - do you know of any software that allows you to crop a file without recoding? Thanks.

  • When I narrate my keynote presentation, why is the file size so huge?

    When I narrate my keynote presentation, why is the file size so huge?

    Here are the steps so you can see all the files that make up your Keynote…
    Go to the Finder and find your Keynote file and make sure that it has the .key extension on it. If it doesn't, click it and command i to view info and uncheck the box that says Hide Extension.
    Delete the .key and change to .zip and then click the use .zip in the dialog box that comes up
    Double click the new .zip file and it will change it to a folder
    Open the folder there are the files
    Close the folder and add .key to the end of the name and click Add in the dialog box (this will change it back to a Keynote file)
    You might be able to do this and convert the voice narration to a smaller format.

  • The FIle Size increase when I transfered to another external...why?

    I just bought a new external hard drive to replace my old external. After copying all my folders and what not to the new hard drive, i noticed that some of the file sizes weren't the same as before. Yet everything looks like it copied correctly.
    Example:
    Video folder on old HD = 5.6 GB
    Video folder on new HD = 10 GB
    Is there a logical reason for this and should I be concerned?

    I believe that your issue is because the block (cluster) size on the disks is vastly different. Blocks are essentially the smallest amount of disk space that can be allocated to hold a file and a file takes up a least one block. If the file is bigger than the block size by even a single byte, it spills over and occupies a second block, even if it doesn't use the full second block. Thus, you get wasted space when the file size isn't exactly the same as a multiple of the block size.
    For a FAT32 formatted disc, your default block/cluster size is either 16KB or 32KB, but for Mac OS Extended, it's 4KB. So, you're going to waste quite a bit more space on the FAT32 drive because its default cluster size is quite a bit larger than the equivalent on Mac OS Extended.
    Message was edited by: Steve Boultbee

  • How can I reduce the file size rendered by After Effects?

    When I render a relatively simple 5 second project in After Effects, the file size of the resultant .avi is 64MB.  If I change the properties to reduce the file size, the degradation makes the file unusable.  What am I doing wrong?

    Is AE's encoder really that inefficient? 
    The thing is, AVI doesn't mean much.
    It's pretty much an empty container box, which doesn't imply a quality level.
    So, AME could default to something completely different as a starting point to produce an AVI file.
    AE defaults to uncompressed video when you pick AVI as a format. So, obviously this produces huge file sizes. There could be similar quality thresholds with smaller sizes if you pick other AVIcodecs, but that's a different subject. And in any case, when you're rendering a production quality master,  file size is usually not your main concern. You typically use this high quality video file as a source for compressed flavors for distribution. So, pristine video files with huge sizes are a good thing - people then wonder why trailers at apple.com, for instance look so good. And the thing is, the most compressed formats benefit enormously from having an uncompressed file as a source.
    Regarding encoding efficiency, yes, AE is less efficient than dedicated encoding solutions. Above all, because it doesn't support 2 pass encoding. Note that for some formats, 2 pass makes a night and day difference, while for others, nothing as drastic as most users seem to believe.
    All of this is a moot point for AVI, because the default AVI codecs don't offer these encoding options, which are more the realm of distribution formats like FLV, MPEG-4/H264 or WMV.
    There are distribution codecs which use AVI as a container out there, but those are a different case.

  • In the metadata settings i can find the file size in pix. is it possible to see the size in inches?

    in the metadata settings i can find the file size in pix. is it possible to see the size in inches?

    Yes, that is one way to do it. But you can also do it by doing some simple math. For instance, let's say the you have an image that is 4000 x 6000 pixels. It doesn't matter whether resolution setting is in the file. The image is still 4000 x 6000 pixels. But you can decide what resolution you are going to export your copy. And you would do that for its intended purpose. If you are going for a high quality print then you would probably want 300 PPI in your export settings. With the example I've given the size print you can get had 300 PPI would be as follows:
    4000 (pixels) / 300 (PPI) = 13.333 Inches
    6000 (pixels) / 300 (PPI) = 20 inches
    So if you were really precise in needing a 300 PPI print you can get one that is 13 x 20".
    If you are preparing for display on the screen, the higher resolution isn't needed. Using the same math:
    4000 / 72 = 55.55 inches
    6000 /  72 = 83.33 inches
    By doing some simple math in your head you can determine the resolution that you need and the size that you need and set up your export accordingly.
    Technically speaking a digital image doesn't have a size other than pixel dimensions. Everything else has to be determined by the resolution that you need for the intended purpose of the final image.

  • Is the file size of a selected image shown on Adobe Bridge CC 2014?  If so, where?

    Is the file size of a selected image among the filter categories?  Or anywhere else? I know I can find it in Photoshop, but that is cumbersome.

    The file size is shown in the Metadata panel.
    You can not filter on file size but you can sort by file size.

  • When downloading a file from google drive and save in my phones document directory,the file size is compressed. Why?

    I have downloaded files from "Dropbox" and save in phones document directory,After downloading in document directory,the size of the download file is same as the actual size in dropbox. I can also open it from document directory.Everything is ok. But when I follow the same process for google drive files, the file size is compressed(if actual size of file is 1.2Mb the download file size is 61Kb). So I can not open it from document directory.So, How can i download the actual size of the file in document directory? I am using google api objectivec client for google drive.
    Thanks in advance.

    If an iphone were to try to download a full size document ot photo, it woul overload its own ram, and crash, resulting in a laggy iphone. Therefore it is compresses

  • Double clicking on a file launches the app but doesn't open the file anymore. Why?

    Double clicking on a file launches the app but doesn't open the file anymore. Why?

    I would post in the Illustrator forum here http://forums.adobe.com/community/illustrator or the Dreamweaver forum here http://forums.adobe.com/community/dreamweaver. One of these product forums will be able to help.

  • HT3775 I am trying to open a .mov file in "Quicktime" and it keeps saying it doesn't support the file.

    I have made a movie in "Final Cut Pro X" saved it as a .mov file and "QuickTime" won't open it. It keeps saying that it doesn't recognize the file. Ironically there is another .mov file right next to it on the flash drive that opens just fine. I do notice that the one it does open looks like a little black box with a 'play' arrow button in it when I run the curser over it, but the one it doesn't open has a 'Quicktime' 'Q' in it.
    I try to eject the flash drive and it says "Final Cut Pro X" is still using it, then it shows me a window that shows 6% progress. I am thinking maybe the movie is still loading. I really don't know.

    Try VLC.

  • How can I reduce the file size of my .cp project file?

    I am working in CP3 and creating training programs via computer simulations.  Generally I try to eliminate any unnecessary animation in my slide (use of scroll bars, drop down menus etc.) because these seemed to increase my file size.  I do have audio narration on almost every slide and I know that this helps to bump up my size.
    Here's what I found to be so odd.
    I have to create a new training module and I simply opened one of my .CP projects and did a SAVE AS with a new file name.  I reduced the number of slides from 25 to 3.  The three slides I kept are the title slide, closing slide and one slide that I'll call a content slide that has the color for my highlight boxes and text formatting.  (I keep the content slide so I can simply copy and paste the boxes as I need them.)  I removed all the audio.  Finally I saved the new project.  Imagine my surprise when the new file is 96,333 KB with only 3 slides, no audio and no animation.  This is almost the same size as the original file.  I published my 3-slide project, thinking it might change the size, but that was wishful thinking.
    I telelcommute from my home and I am required to check these files out of a secured document library each time I need to update them.  The upload time is KILLING ME!
    What am I doing wrong?  The Information section shows the file size as 783.9KB which seems more in line with what I would expect.
    Any help, as always is appreciated.

    Hi BIMB,
    Here's my guess, others can correct if I'm way off.
    What you see as the file size under the Cp4 Storyboard View Information is what the published file size would be sans any unused pics, audio, or swfs. So it should be relatively small given you only have 3 slides in your project.
    What you see as the 'save as' version reflects all of the pics, audio, and/or .swfs you still have in your project's library.
    Now if you've actually removed the audio files and pics from the Cp Library, then I'm not sure.
    Curious to know if this helps,
    Keith

  • How do I find the file size of my presentation in keynote for iPad?

    I know this is a simple question, and I have a work around by just emailing the file to me, but I want to know how I can see the file size as I work on the file within keynote.....on the iPad.
    Thanks

    Select the album, Select all photos in the album, then click on the info button.   Number of photos and total size are on  top of info pane.

Maybe you are looking for

  • DME file format lenght specification

    Hi All, I have e problem with the DME file format length specification..So far as I know the field lenght is fixed when we create the structure. But I have a requirement wherein they want to make the lenght of the field as dynamic. Like for example T

  • DHCP Failover in Windows 2008 R2 and Windows 2012 R2 Environment

    Hi Everyone, We are trying to implement DHCP failover in our environment. Our IT Infrastructure consists of 4 – windows server 2008 R2 servers and 7 – Windows Server 2012 servers; 1 Main Office with 2 – DC's and 9 branch/remote offices with one DNS s

  • BIB-14657 error when connecting to BIBeans catalog from JDev10g/bibeans10g

    when I try to connect to the BI Catalog, this is what I get: oracle.dss.bicontext.BINoInitialContextException: BIB-14053 Initial context cannot be created. oracle.dss.persistence.persistencemanager.common.PersistenceManagerRuntimeException: BIB-14122

  • ITunes fails to start- I've tried the QT uninstall thing

    I've done my research but I can't find a solution that works. Seems like some people are having problems with Malware and some are having problems with QT version integrity. The solutions seem to be variations on similar remedies but so far, nothing'

  • CRM HTTP Survey Security

    Hi, We are currently triying to use CRM survey via HTTP. In order to give access to our customers we want to use SAP Web Dispatcher. Our Security team has issues about this solution, because they think that is insecure. I would like to know if anyone