File size in MB

Hi Friends,
    My requirement is to download the internal table value into
a notepad. For eg. Internal table my contain 1000 records. So initially before downloading i need to determine the size of the file which i am going to download.Means by calculating the no. of characters i need to determine what could be the size of my file.
     Based on that if 1000 records make the size of file as 10MB. i need to break the file at every 1MB and make 10 files
and download it to desktop.
Please help me in this...
Thanks in Advance..
Srikanth

Hi
You can try the following approach.
First you can download all the records to one file and than using the following 
CL_GUI_FRONTEND_SERVICES => FILE_GET_SIZE
You can find the size, when you have size value.
You can do division as per your requirement and loop the internal table and download accordingly
Regards
Madhan

Similar Messages

  • PDF File Size - any way to compress further?

    We have are using the Crystal for .NET export method to export a report to a .pdf file, and are having an issue with the pdf file size on a report that contains images.  The images are stored in a SQL2005 database as blob or varbinary(max).  The report executes a stored procedure that selects data (including images) to produce a quotation.  There are input parms to decide which images to print (for example A, B or both A&B). Both types of images can appear at the line level on the quotation. Type A images print in the main report, Type B images are in a subreport.  Both the main report & subreport execute a stored procedure to select an image type.
    Our issue, when both Type A and B image is selected to print on a 293 line quote.  The PDF file size is 44.23MB
    When Type A only is selected, the PDF file size is 2.64MB
    When Type B only is selected, the PFD file size is 43.95MB.
    There are more Type B images that would print at the line level than Type A, but is there any way to compress this down further as it is too large to email.

    You mention that you are using Crystal for .NET, but not what version; CR for .NET 2003, 2005, 2008. 2010?
    Applying the latest fixes for the correct version of CR would be the first thing to do.
    Next, I'd have a close look at image B as it appears to be the one adding the most "bulk". How is this image different from image A?
    General tips re. images:
    Save the files a BMPs.
    When .jpg image is inserted into Crystal Reports it is converted into bitmap format and as the result of the conversion the report may loose some quality, scale and other issues may arise... E.g.; Crystal Reports is not so good a graphics management tool
    When an image is saved as a .bmp, then there is no conversion required and thus the quality of the image should be preserved.
    Best practice: save the image with high resolution and required size as a .bmp format then insert this image into Crystal Reports.
    Resize the image to the smallest possible size and downgrade the DPI to 72. This will ensure your image is as small as possible and Crystal Reports will have to put in the least amount of work to display it.
    Have a look ar KB [1241630 - Exporting a Crystal report (XI) to PDF generates a big PDF file|http://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/oss_notes_boj/sdn_oss_boj_bi/sap(bD1lbiZjPTAwMQ==)/bc/bsp/spn/scn_bosap/notes%7B6163636573733d36393736354636443646363436353344333933393338323636393736354637333631373036453646373436353733354636453735364436323635373233443330333033303331333233343331333633333330%7D.do]. This KB, may apply to your version of CR, or not. In any case, you will have to use the KB as a guide and determine what the appropriate registry entry would be for your version of CR.
    One more thing. Many people like to use jpg files as they are smaller than bmp files. However, as far as Crystal Reports is concerned, this is inconsequential. The report file will be the same size if a file is inserted as a jpg or a bmp. This is due to the jpg conversion to bmp Crystal Reports does internally.
    Ludek
    Follow us on Twitter http://twitter.com/SAPCRNetSup
    Got Enhancement ideas? Try the [SAP Idea Place|https://ideas.sap.com/community/products_and_solutions/crystalreports]

  • How can I use one background jpeg in my ebook without a large file size

    I'm guessing that by simply adding a background image or watermark by default adds a separate copy to each page. Since I am intending for them to be the same on all pages except for the title page, how do I shrink the final file size of my PDF eBooks so that the image is stored once but shown on all pages?
    Thanks in advance.

    Thank you, I understand, yeah, I knew that, my phone is factory unlocked and I am going home, which is obviously not in the States and I am thinking of buying a local carrier there. However, I still have 2 weeks before I leave and cannnot wait to start using my Iphone 4. I thought at least I could use the mp3 player function. So as far as I understand, I cannot activate it without a sim card. I have been using metropcs for about two years and it does not have a sim card. In this case, do I really not have another choice but wait for two weeks to listen to music? My Mp3 player just failed me and I really need to listen to music but on the other hand, while I can use my iphone as an mp3 player in two weeks, I don't want to spend more money on a new one. So, do you have another suggestion? For instance, can I use a friend's sim card to activate mine? Would this cause any trouble, when I go home and buy a local carrier? I think these questions might kinda sound weird to you, but first time with an Iphone, extremely excited to start using under my circumstances, I need help   thanks,

  • A simple and free way of reducing PDF file size using Preview

    Note: this is a copy and update of a 5 year old discussion in the Mac OS X 10.5 Leopard discussions which you can find here: https://discussions.apple.com/message/6109398#6109398
    This is a simple and free solution I found to reduce the file size of PDFs in OS X, without the high cost and awful UI of Acrobat Pro, and with acceptable quality. I still use it every day, although I have Acrobat Pro as part of Adove Creative Cloud subscription.
    Since quite a few people have found it useful and keep asking questions about the download location and destination of the filters, which have changed since 2007, I decided to write this update, and put it in this more current forum.
    Here is how to install it:
    Download the filters here: https://dl.dropboxusercontent.com/u/41548940/PDF%20compression%20filters%20%28Un zip%20and%20put%20in%20your%20Library%20folder%29.zip
    Unzip the downloaded file and copy the filters in the appropriate location (see below).
    Here is the appropriate location for the filters:
    This assumes that your startup disk's name is "Macintosh HD". If it is different, just replace "Macintosh HD" with the name of your startup disk.
    If you are running Lion or Mountain Lion (OS X 10.7.x or 10.8.x) then you should put the downloaded filters in "Macintosh HD/Library/PDF Services". This folder should already exist and contain files. Once you put the downloaded filters there, you should have for example one file with the following path:
    "Macintosh HD/Library/PDF Services/Reduce to 150 dpi average quality - STANDARD COMPRESSION.qfilter"
    If you are running an earlier vesion of OS X (10.6.x or earlier), then you should put the downloaded filters in "Macintosh HD/Library/Filters" and you should have for example one file with the following path:
    "Macintosh HD/Library/Filters/Reduce to 150 dpi average quality - STANDARD COMPRESSION.qfilter"
    Here is how to use it:
    Open a PDF file using Apple's Preview app,
    Choose Export (or Save As if you have on older version of Mac OS X) in the File menu,
    Choose PDF as a format
    In the "Quartz Filter" drop-down menu, choose a filter "Reduce to xxx dpi yyy quality"; "Reduce to 150 dpi average quality - STANDARD COMPRESSION" is a good trade-off between quality and file size
    Here is how it works:
    These are Quartz filters made with Apple Colorsinc Utility.
    They do two things:
    downsample images contained in a PDF to a target density such as 150 dpi,
    enable JPEG compression for those images with a low or medium setting.
    Which files does it work with?
    It works with most PDF files. However:
    It will generally work very well on unoptimized files such as scans made with the OS X scanning utility or PDFs produced via OS X printing dialog.
    It will not further compress well-optimized (comrpessed) files and might create bigger files than the originals,
    For some files it will create larger files than the originals. This can happen in particular when a PDF file contains other optomizations than image compression. There also seems to be a bug (reported to Apple) where in certain circumstances images in the target PDF are not JPEG compressed.
    What to do if it does not work for a file (target PDF is too big or even larger than the original PDF)?
    First,a good news: since you used a Save As or Export command, the original PDF is untouched.
    You can try another filter for a smaller size at the expense of quality.
    The year being 2013, it is now quite easy to send large files through the internet using Dropbox, yousendit.com, wetransfer.com etc. and you can use these services to send your original PDF file.
    There are other ways of reducing the size of a PDF file, such as apps in the Mac App store, or online services such as the free and simple http://smallpdf.com
    What else?
    Feel free to use/distribute/package in any way you like.

    Thanks ioscar.
    The original link should be back online soon.
    I believe this is a Dropbox error about the traffic generated by my Dropbox shared links.
    I use Dropbox mainly for my business and I am pretty upset by this situation.
    Since the filters themsemves are about 5KB, I doubt they are the cause for this Dropbox misbehavior!
    Anyway, I submitted a support ticket to Dropbox, and hope everything will be back to normal very soon.
    In the meantime, if you get the same error as ioscar when trying to download them, you can use the link in the blog posting he mentions.
    This is out of topic, but for those interested, here is my understanding of what happened with Dropbox.
    I did a few tests yesterday with large (up to 4GB) files and Dropbox shared links, trying to find the best way to send a 3 hour recording from French TV - French version of The Voice- to a friend's 5 year old son currently on vacation in Florida, and without access to French live or catch up TV services. One nice thing I found is that you can directly send the Dropbox download URL (the one from the Download button on the shared link page) to an AppleTV using AirFlick and it works well even for files with a large bitrate (except of course for the Dropbox maximum bandwidth per day limit!). Sadly, my Dropbox shared links were disabled before I could send anything to my friend.
    I may have used  a significant amount of bandwidth but nowhere near the 200GB/day limit of my Dropbox Pro account.
    I see 2 possible reasons to Dropbox freaking out:
    - My Dropbox Pro account is wronngly identified as a free account by Dropbox. Free Dropbox accounts have a 20GB/day limit, and it is possible that I reached this limit with my testing, I have a fast 200Mb/s internet access.
    - Or Dropbox miscalculates used bandwidth, counting the total size of the file for every download begun, and I started a lot of downloads, and skipped to the end of the video a lot of times on my Apple TV.

  • My premiere project file size just went from 190MB to 5.61GB... and now it won't open! Anyone know how this happened?

    My premiere project file size just went from 190MB to 5.61GB... and now it won't open! Anyone know how this happened? Or how to prevent it from happening again? Thankfully I saved a backup project of the 190MB file size.

    warp stabiliser?

  • 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.

  • How can I display file size in Finder

    Hi folks,
    I am trying to figure out where 40GB of data is hiding. I would like to see file sizes in the Finder window associated with my folders in Mountain Lion 10.8.2..  I'm having, what seems to me, a strange problem. When I 'Get Info' on my Hard Drive, the disc space left is only 40GB out of 120GB (ie used being 80GB). My confusion is that when I painstakingly go through the files, I can only account for 48 GB with 'Get Info' on each folder. This is a rather combersome process and I am hoping there is a work around for viewing the file sizes within Finder and not having to open 'Get Info' on each and every folder like I have been.
    I have a MacAir 13 inch 2011
    Thanks!

    Thanks for your time and suggestions, dominic23.
    I looked through both links and sadly, none of these suggestions have worked. I have tried many on my own since posting trying to figure out why the volume is being doubled on my hard drive. I've deleted log files, and done a sweep with Onyx to no avail. Strangely, the option of seeing the volumes under 'About this Mac' and 'System' does not have a listing for storage. Weird. I am the only user/administrator on this computer and I don't have shared files.
    I'm just stumped.

  • How do I keep an Edge Animate banner ad file size small?

    Most publishers cap the file size of banner ads at 30 KB to 50 KB. Is that possible using Edge? I know someone asked a question like this two years ago, and the reply was to use a CDN to serve the larger .js files. Is there a more direct approach now that Edge is no longer in preview? Thanks!

    Hi SGPGirl,
    We were just forming what became the Edge Animate team two years ago, so many questions were asked at that time.  The 30k-50k ad standards were built with Flash in mind; HTML advertising standards are still emerging.  In the meanwhile, we are making a continuing investment to improve the form factor of Animate output.  Here are a few things we've done so far in "Publish":
    - Frameworks via CDN (for jQuery)
    - "Polite" preloader - this allows you to sneak-in under 30k size limits.  It shows a light-weight "preloader" and then pull in a larger payload after the page has loaded.  The preloader UI contains a meter that indicates the gzipped size of the preloader including its resources.
    - Compressed composition output.  When published, the animation (xyz_edge.js) is written in an efficient/compact form that shaves as much as 80% from the composition size.
    I'd be grateful for your perspective on the "polite preloader" approach vs. trying to fit the entire composition into 30k.  If Animate were to support an "areo-gel weight" output format, what kinds of experiences would you expect to produce with it?  If you have any examples, please share!
    - Josh

  • Problem with CS2 edit file size

    When I create a new version of a 3-4mb original, make a few simple modifications in CS2 and save back to Aperture the resulting version is almost 70mb. If I export this version from Ap back to my desktop and check file size it is back to near the original size. Yet, when I check the file size stored in my Ap library, it is 70mb. This will fill my hard drive in a hurry! Can someone help explain this ??

    I did a little more experimenting by making external edits in PS on a 3.9mb JPG file in both Aperture and Lightroom to see what the resulting file sizes were. In both cases I left the master outside the library so that I could see file additions in both the application library and in the folder containing the originals and revisions. I looked into the file directories to determine real file sizes rather than relying on info from the applications. The increase in library file size was small in both apps. However, there was a significant difference in the revised file size between Aperture & Lightroom in the folders containing the originals. The best I could do in Aperture produced a 24.6mb psd revised file, which showed as a version in the App., in addition to the master. Lightroom gives the option to revise the master or revise a copy of the master when exporting. When revising a copy of the master, the result was a new jpg file approximately the same size as the master - 3.9mb - which appeared as a version. This is what I would like to be able to do in Aperture.
    I have been using PS for several years for all my photo enhancements and have developed a pretty comfortable and effective routine. Having used Aperture for a couple of months now, I can see that most minor edits can be done more easily in Aperture, but the same is true of Lightwell. Although I would probably only use PS on less than 25% of my keeper photos, this increased storage requirement seems more trouble than the advantages of Aperture vs Lightroom are worth. Maybe Apple will make a change in the next revision that will effect this situation and make Aperture more desirable for JPG shooters.
    Thanks Again,
    Bob

  • Edit file size disagreement

    Editing the library of Aperture is covered by using Textwrangler, but I post this in hopes someone else had the exact same issue and that they can share their info on how they resolved it.
    I have a file library that contains referenced files. Looks like a bug in Aperture causes a photo edited in an external editor to have a mis-matched file size. Hmm, this is problematic as I'm spending hours troubleshooting this issue.
    It looks like I should just re-import it at this point, but I initially wanted to avoid that issue. Textwrangler seemed to be a good idea, but I can't go modifying it without a roadmap. Where are the attributes of file size(s) stored within Aperture's library?
    When I'm in Textwrangler, I take the filename and +f it. It locates it fine within Textwrangler, but what do I do next? It's referring to another file it seems.
    Here is a screenshot to show my problem.
    http://andyography.com/ography/wp-content/uploads/2007/08/notreconnecting.jpg

    Hi Waves39,
    Highlight the photo
    go to share>export
    Put in the dimensions you want
    export to the desktop
    upload to .mac

  • Edit File Size?

    Is it possible to edit or modify the (file) size of a photo using iPhoto? Thanks.
    Background Notes:
    I've uploaded a couple of photos to my .Mac site, but when I view them on my website, the photo takes up the whole page rather than just a small part of it.
    I hand-code the pages I upload to my .Mac site using.
    I know I can do this using Adobe Photoshop but that's an added expense I really can't afford right now.
    iMac PowerBook G4    

    Hi Waves39,
    Highlight the photo
    go to share>export
    Put in the dimensions you want
    export to the desktop
    upload to .mac

  • Scanning Negatives - File Size Error

    I receive the error that follows while scanning negatives:
    "Failed to obtain files from the device. The files size exceeds the maximum size allowed..."
    What is PSE maximum size for scanned images.

    Hi Dave,
    This is quite strange. There is as such no limit to the size of the scanned image.
    To isolate the problem, can you please try this?
    1. Scan the negative using Windows Camera and Scanner Wizard.
    2. Drag and drop the scanned image onto Organizer.
    Do you still get the same error?
    Thanks/Tarun

  • 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

  • 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

  • I publish a 41mb newsletter monthly into interactive pdf. It always becomes a file size of 4mb, 10% of original, when I save to pdf. This month my newsletter is 41mb and it drops to 11mb, 25% of original. I have re-sized all pictures, deleted pages separa

    I publish a 41mb InDesign newsletter monthly into interactive pdf. It always becomes a file size of 4mb, 10% of original, when I save to pdf. This month my newsletter is 41mb and it drops to 11mb, 25% of original. I have re-sized all pictures, deleted pages separately, have gotten the file size down to 16mb and it drops to 7mb, 45% of original.
    I have gone back and saved Feb and March and it saves to 10% of original, as it did before, and I use the same mechanism to save now.
    I have gone to Acrobat Pro and optimized down to 8.8mb, but the quality is not acceptable.
    What other variable is there that I haven't discovered?

    My daughter has had her Razr for about 9 months now.  About two weeks ago she picked up her phone in the morning on her way to school when she noticed two cracks, both starting at the camera lens. One goes completely to the bottom and the other goes sharply to the side. She has never dropped it and me and my husband went over it with a fine tooth comb. We looked under a magnifying glass and could no find any reason for the glass to crack. Not one ding, scratch or bang. Our daughter really takes good care of her stuff, but we still wanted to make sure before we sent it in for repairs. Well we did and we got a reply from Motorola with a picture of the cracks saying this was customer abuse and that it is not covered under warranty. Even though they did not find any physical damage to back it up. Well I e-mailed them back and told them I did a little research and found pages of people having the same problems. Well I did not hear from them until I received a notice from Fed Ex that they were sending the phone back. NOT FIXED!!! I went to look up why and guess what there is no case open any more for the phone. It has been wiped clean. I put in the RMA # it comes back not found, I put in the ID #, the SN# and all comes back not found. Yet a day earlier all the info was there. I know there is a lot more people like me and all of you, but they just don't want to be bothered so they pay to have it fix, just to have it do it again. Unless they have found the problem and only fixing it on a customer pay only set up. I am furious and will not be recommending this phone to anyone. And to think I was considering this phone for my next up grade! NOT!!!!

  • File Size of PDFs in Preview

    I scan a lot of documents for record keeping purposes. I set the scanner to 300 dpi, black and white. This keeps the file size down and the document is readable and printable (close to the original), and the scanning is quick. I scanned three sets of documents (about 15 pages each) this way and saved them as PDFs. The file sizes were 3.1 MB, 3.2 MB, and 1.8 MB. I used Preview to combine the three documents into one PDF. The resulting file was 19.3 MB. Why so large? 3.1 + 3.2 + 1.8 = 8.1 What is going on here? How do I keep the file size down when using Preview? I don't want to buy PDF Studio (or some tool like it) if I can avoid it (they all seem so mediocre).

    Try Combine PDFs
    <http://www.monkeybreadsoftware.info/Freeware/CombinePDFs.shtml>
    I scan at 600 bpi into TIFF, then use Graphics Converter to save with the CCITT 4 compression. I get about 12:1 compression, with no loss of quality. The result is still TIFF, so you don't have to uncompress to use them.

Maybe you are looking for