Specifying the size of a file when creating a new file

How do I go about doing this? I specifically need to create different file sizes (2mb's all the way up to 10mb). I was poking around through the File class and there doesn't seem to be a way to do this. There is a way to get the size of it in bytes, but no way to create an empty file straight off the bat with the file size specified. Does anyone know how to do this?
Thanks.

the reason I want to do this is because I need to pass certain file sizes over a network and see if the system can handle the sizes of the file under load. the files dont necessarily have to be empty, they can be filled with a bunch of jibberish, but I figured it would be easier to be able to just specify the size of the file rather than have a loop that loops and places over 2 million characters into a file. because a 2mb file is going to be the smaller of the files that needs passed through and that will take too long to create.
and thanks for the link to randomaccessfile. im probably going to use that, just specify the file size and be done with it. unless theres a better way to do it, but i cant find anything.

Similar Messages

  • PSE crashes when opening files and creating a new files

    I've got an HP Envy 3D laptop that came with PSE and Windows 7 pre-installed.  Recently it's been crashing whenever I try to open a file or create a new file.  Unfortunately, I don't have any of the installation discs.  Suggestions?
    Thanks!
    Bob

    Reboot solves it.  Duh. 

  • Photoshop CC 2014 wont open any files or create a new file

    I can't open any files or create a new file no matter what I do. I've uninstalled Photoshop along with every Adobe application then reinstalled creative cloud and photoshop but that didn't work. I've tried moving the preferences to the desktop, didn't work. Does anyone have any answers? Even my IT guy can't figure it out. Please help. It's been like this for a few days now and I have a work assignment due...ahh!
    Adobe Photoshop Version: 2014.2.2 20141204.r.310 2014/12/04:23:59:59 CL 994532  x64
    Operating System: Windows 8.1 64-bit
    Version: 6.3

    The problem is with all files. I was just using the linked file from InDesign as an example.
    Here's my system info:
    Adobe Photoshop Version: 2014.2.2 20141204.r.310 2014/12/04:23:59:59 CL 994532  x64
    Operating System: Windows 8.1 64-bit
    Version: 6.3
    System architecture: Intel CPU Family:6, Model:12, Stepping:3 with MMX, SSE Integer, SSE FP, SSE2, SSE3, SSE4.1, SSE4.2, AVX, AVX2, HyperThreading
    Physical processor count: 2
    Logical processor count: 4
    Processor speed: 2993 MHz
    Built-in memory: 8097 MB
    Free memory: 3818 MB
    Memory available to Photoshop: 7036 MB
    Memory used by Photoshop: 70 %
    3D Multitone Printing: Disabled.
    Windows 2x UI: Disabled.
    Highbeam: Enabled.
    Image tile size: 128K
    Image cache levels: 4
    Font Preview: Medium
    TextComposer: Latin
    Display: 1
    Display Bounds: top=0, left=0, bottom=1080, right=1920
    Display: 2
    Display Bounds: top=0, left=-1920, bottom=1080, right=0
    OpenGL Drawing: Enabled.
    OpenGL Allow Old GPUs: Not Detected.
    OpenGL Drawing Mode: Advanced
    OpenGL Allow Normal Mode: True.
    OpenGL Allow Advanced Mode: True.
    AIFCoreInitialized=1
    AIFOGLInitialized=1
    OGLContextCreated=1
    NumGLGPUs=1
    NumCLGPUs=2
    glgpu[0].GLVersion="3.0"
    glgpu[0].GLMemoryMB=1024
    glgpu[0].GLName="Intel(R) HD Graphics 4600"
    glgpu[0].GLVendor="Intel"
    glgpu[0].GLVendorID=32902
    glgpu[0].GLDriverVersion="10.18.10.3977"
    glgpu[0].GLRectTextureSize=16384
    glgpu[0].GLRenderer="Intel(R) HD Graphics 4600"
    glgpu[0].GLRendererID=1046
    glgpu[0].HasGLNPOTSupport=1
    glgpu[0].GLDriver="igdumdim64.dll,igd10iumd64.dll,igd10iumd64.dll,igdumdim32,igd10iumd32,i gd10iumd32"
    glgpu[0].GLDriverDate="20141009000000.000000-000"
    glgpu[0].CanCompileProgramGLSL=1
    glgpu[0].GLFrameBufferOK=1
    glgpu[0].glGetString[GL_SHADING_LANGUAGE_VERSION]="1.30 - Build 10.18.10.3977"
    glgpu[0].glGetProgramivARB[GL_FRAGMENT_PROGRAM_ARB][GL_MAX_PROGRAM_INSTRUCTIONS_ARB]=[1447 ]
    glgpu[0].glGetIntegerv[GL_MAX_TEXTURE_UNITS]=[8]
    glgpu[0].glGetIntegerv[GL_MAX_COMBINED_TEXTURE_IMAGE_UNITS]=[192]
    glgpu[0].glGetIntegerv[GL_MAX_VERTEX_TEXTURE_IMAGE_UNITS]=[32]
    glgpu[0].glGetIntegerv[GL_MAX_TEXTURE_IMAGE_UNITS]=[32]
    glgpu[0].glGetIntegerv[GL_MAX_DRAW_BUFFERS]=[8]
    glgpu[0].glGetIntegerv[GL_MAX_VERTEX_UNIFORM_COMPONENTS]=[4096]
    glgpu[0].glGetIntegerv[GL_MAX_FRAGMENT_UNIFORM_COMPONENTS]=[4096]
    glgpu[0].glGetIntegerv[GL_MAX_VARYING_FLOATS]=[64]
    glgpu[0].glGetIntegerv[GL_MAX_VERTEX_ATTRIBS]=[16]
    glgpu[0].extension[AIF::OGL::GL_ARB_VERTEX_PROGRAM]=1
    glgpu[0].extension[AIF::OGL::GL_ARB_FRAGMENT_PROGRAM]=1
    glgpu[0].extension[AIF::OGL::GL_ARB_VERTEX_SHADER]=1
    glgpu[0].extension[AIF::OGL::GL_ARB_FRAGMENT_SHADER]=1
    glgpu[0].extension[AIF::OGL::GL_EXT_FRAMEBUFFER_OBJECT]=1
    glgpu[0].extension[AIF::OGL::GL_ARB_TEXTURE_RECTANGLE]=1
    glgpu[0].extension[AIF::OGL::GL_ARB_TEXTURE_FLOAT]=1
    glgpu[0].extension[AIF::OGL::GL_ARB_OCCLUSION_QUERY]=1
    glgpu[0].extension[AIF::OGL::GL_ARB_VERTEX_BUFFER_OBJECT]=1
    glgpu[0].extension[AIF::OGL::GL_ARB_SHADER_TEXTURE_LOD]=0
    clgpu[0].CLPlatformVersion="1.2 "
    clgpu[0].CLDeviceVersion="1.2 "
    clgpu[0].CLMemoryMB=1425
    clgpu[0].CLName="Intel(R) HD Graphics 4600"
    clgpu[0].CLVendor="Intel(R) Corporation"
    clgpu[0].CLVendorID=32902
    clgpu[0].CLDriverVersion="10.18.10.3977"
    clgpu[0].CUDASupported=0
    clgpu[0].CLBandwidth=1.51274e+010
    clgpu[0].CLCompute=192.283
    clgpu[1].CLPlatformVersion="1.2 AMD-APP (1348.5)"
    clgpu[1].CLDeviceVersion="1.2 AMD-APP (1348.5)"
    clgpu[1].CLMemoryMB=2048
    clgpu[1].CLName="Oland"
    clgpu[1].CLVendor="Advanced Micro Devices, Inc."
    clgpu[1].CLVendorID=4098
    clgpu[1].CLDriverVersion="1348.5 (VM)"
    clgpu[1].CUDASupported=0
    clgpu[1].CLBandwidth=5.1353e+010
    clgpu[1].CLCompute=318.462
    License Type: Subscription
    Serial number:
    Application folder: C:\Program Files\Adobe\Adobe Photoshop CC 2014\
    Temporary file path: C:\Users\Kelley\AppData\Local\Temp\
    Photoshop scratch has async I/O enabled
    Scratch volume(s):
      Startup, 225.1G, 163.1G free
    Required Plug-ins folder: C:\Program Files\Adobe\Adobe Photoshop CC 2014\Required\Plug-Ins\
    Primary Plug-ins folder: C:\Program Files\Adobe\Adobe Photoshop CC 2014\Plug-ins\
    Installed components:
       A3DLIBS.dll   A3DLIB Dynamic Link Library   9.2.0.112  
       ACE.dll   ACE 2014/08/12-23:42:09   79.557478   79.557478
       adbeape.dll   Adobe APE 2013/02/04-09:52:32   0.1160850   0.1160850
       AdbePM.dll   PatchMatch 2014/09/07-21:07:38   79.558079   79.558079
       AdobeLinguistic.dll   Adobe Linguisitc Library   8.0.0  
       AdobeOwl.dll   Adobe Owl   5.2.4  
       AdobePDFL.dll   PDFL 2014/08/18-15:13:12   79.512424   79.512424
       AdobePIP.dll   Adobe Product Improvement Program   7.2.1.3399  
       AdobeXMP.dll   Adobe XMP Core 2014/08/20-09:53:02   79.156797   79.156797
       AdobeXMPFiles.dll   Adobe XMP Files 2014/08/20-09:53:02   79.156797   79.156797
       AdobeXMPScript.dll   Adobe XMP Script 2014/08/20-09:53:02   79.156797   79.156797
       adobe_caps.dll   Adobe CAPS   8,0,0,13  
       AGM.dll   AGM 2014/08/12-23:42:09   79.557478   79.557478
       ahclient.dll    AdobeHelp Dynamic Link Library   1,8,0,31  
       amtlib.dll   AMTLib (64 Bit)   8.0.0.122212002 BuildVersion: 8.0; BuildDate: Wed Jul 30 2014 15:59:34)   1.000000
       ARE.dll   ARE 2014/08/12-23:42:09   79.557478   79.557478
       AXE8SharedExpat.dll   AXE8SharedExpat 2013/12/20-21:40:29   79.551013   79.551013
       AXEDOMCore.dll   AXEDOMCore 2013/12/20-21:40:29   79.551013   79.551013
       Bib.dll   BIB 2014/08/12-23:42:09   79.557478   79.557478
       BIBUtils.dll   BIBUtils 2014/08/12-23:42:09   79.557478   79.557478
       boost_date_time.dll   photoshopdva   8.0.0  
       boost_signals.dll   photoshopdva   8.0.0  
       boost_system.dll   photoshopdva   8.0.0  
       boost_threads.dll   photoshopdva   8.0.0  
       cg.dll   NVIDIA Cg Runtime   3.0.00007  
       cgGL.dll   NVIDIA Cg Runtime   3.0.00007  
       CIT.dll   Adobe CIT   2.2.6.32411   2.2.6.32411
       CITThreading.dll   Adobe CITThreading   2.2.6.32411   2.2.6.32411
       CoolType.dll   CoolType 2014/08/12-23:42:09   79.557478   79.557478
       dvaaudiodevice.dll   photoshopdva   8.0.0  
       dvacore.dll   photoshopdva   8.0.0  
       dvamarshal.dll   photoshopdva   8.0.0  
       dvamediatypes.dll   photoshopdva   8.0.0  
       dvametadata.dll   photoshopdva   8.0.0  
       dvametadataapi.dll   photoshopdva   8.0.0  
       dvametadataui.dll   photoshopdva   8.0.0  
       dvaplayer.dll   photoshopdva   8.0.0  
       dvatransport.dll   photoshopdva   8.0.0  
       dvaui.dll   photoshopdva   8.0.0  
       dvaunittesting.dll   photoshopdva   8.0.0  
       dynamiclink.dll   photoshopdva   8.0.0  
       ExtendScript.dll   ExtendScript 2014/01/21-23:58:55   79.551519   79.551519
       icucnv40.dll   International Components for Unicode 2013/02/25-15:59:15    Build gtlib_4.0.19090  
       icudt40.dll   International Components for Unicode 2013/02/25-15:59:15    Build gtlib_4.0.19090  
       igestep30.dll   IGES Reader   9.3.0.113  
       imslib.dll   IMSLib DLL   7.0.0.154  
       JP2KLib.dll   JP2KLib 2014/06/28-00:28:27   79.254012   79.254012
       libifcoremd.dll   Intel(r) Visual Fortran Compiler   10.0 (Update A)  
       libiomp5md.dll   Intel(R) OpenMP* Runtime Library   5.0  
       libmmd.dll   Intel(r) C Compiler, Intel(r) C++ Compiler, Intel(r) Fortran Compiler   12.0  
       LogSession.dll   LogSession   7.2.1.3399  
       mediacoreif.dll   photoshopdva   8.0.0  
       MPS.dll   MPS 2014/08/18-23:43:19   79.557676   79.557676
       pdfsettings.dll   Adobe PDFSettings   1.04  
       Photoshop.dll   Adobe Photoshop CC 2014   15.2.2  
       Plugin.dll   Adobe Photoshop CC 2014   15.2.2  
       PlugPlugExternalObject.dll   Adobe(R) CEP PlugPlugExternalObject Standard Dll (64 bit)   5.0.0  
       PlugPlugOwl.dll   Adobe(R) CSXS PlugPlugOwl Standard Dll (64 bit)   5.2.0.54  
       PSArt.dll   Adobe Photoshop CC 2014   15.2.2  
       PSViews.dll   Adobe Photoshop CC 2014   15.2.2  
       SCCore.dll   ScCore 2014/01/21-23:58:55   79.551519   79.551519
       ScriptUIFlex.dll   ScriptUIFlex 2014/01/20-22:42:05   79.550992   79.550992
       svml_dispmd.dll   Intel(r) C Compiler, Intel(r) C++ Compiler, Intel(r) Fortran Compiler   12.0  
       tbb.dll   Intel(R) Threading Building Blocks for Windows   4, 2, 2013, 1114  
       tbbmalloc.dll   Intel(R) Threading Building Blocks for Windows   4, 2, 2013, 1114  
       TfFontMgr.dll   FontMgr   9.3.0.113  
       TfKernel.dll   Kernel   9.3.0.113  
       TFKGEOM.dll   Kernel Geom   9.3.0.113  
       TFUGEOM.dll   Adobe, UGeom©   9.3.0.113  
       updaternotifications.dll   Adobe Updater Notifications Library   8.0.0.14 (BuildVersion: 1.0; BuildDate: BUILDDATETIME)   8.0.0.14
       VulcanControl.dll   Vulcan Application Control Library   5.0.0.82  
       VulcanMessage5.dll   Vulcan Message Library   5.0.0.82  
       WRServices.dll   WRServices Fri Mar 07 2014 15:33:10   Build 0.20204   0.20204
       wu3d.dll   U3D Writer   9.3.0.113  
    Required plug-ins:
       3D Studio 15.2.2 (2014.2.2 x001 x003)
       Accented Edges 15.2.2
       Adaptive Wide Angle 15.2.2
       Angled Strokes 15.2.2
       Average 15.2.2 (2014.2.2 x001 x003)
       Bas Relief 15.2.2
       BMP 15.2.2
       Camera Raw 8.7.1
       Camera Raw Filter 8.7.1
       Chalk & Charcoal 15.2.2
       Charcoal 15.2.2
       Chrome 15.2.2
       Cineon 15.2.2 (2014.2.2 x001 x003)
       Clouds 15.2.2 (2014.2.2 x001 x003)
       Collada 15.2.2 (2014.2.2 x001 x003)
       Color Halftone 15.2.2
       Colored Pencil 15.2.2
       CompuServe GIF 15.2.2
       Conté Crayon 15.2.2
       Craquelure 15.2.2
       Crop and Straighten Photos 15.2.2 (2014.2.2 x001 x003)
       Crop and Straighten Photos Filter 15.2.2
       Crosshatch 15.2.2
       Crystallize 15.2.2
       Cutout 15.2.2
       Dark Strokes 15.2.2
       De-Interlace 15.2.2
       Dicom 15.2.2
       Difference Clouds 15.2.2 (2014.2.2 x001 x003)
       Diffuse Glow 15.2.2
       Displace 15.2.2
       Dry Brush 15.2.2
       Eazel Acquire 15.2.2 (2014.2.2 x001 x003)
       Embed Watermark 4.0
       Entropy 15.2.2 (2014.2.2 x001 x003)
       Export Color Lookup Tables NO VERSION
       Extrude 15.2.2
       FastCore Routines 15.2.2 (2014.2.2 x001 x003)
       Fibers 15.2.2
       Film Grain 15.2.2
       Filter Gallery 15.2.2
       Flash 3D 15.2.2 (2014.2.2 x001 x003)
       Fresco 15.2.2
       Glass 15.2.2
       Glowing Edges 15.2.2
       Google Earth 4 15.2.2 (2014.2.2 x001 x003)
       Grain 15.2.2
       Graphic Pen 15.2.2
       Halftone Pattern 15.2.2
       HDRMergeUI 15.2.2
       HSB/HSL 15.2.2
       IFF Format 15.2.2
       IGES 15.2.2 (2014.2.2 x001 x003)
       Ink Outlines 15.2.2
       JPEG 2000 15.2.2
       Kurtosis 15.2.2 (2014.2.2 x001 x003)
       Lens Blur 15.2.2
       Lens Correction 15.2.2
       Lens Flare 15.2.2
       Liquify 15.2.2
       Matlab Operation 15.2.2 (2014.2.2 x001 x003)
       Maximum 15.2.2 (2014.2.2 x001 x003)
       Mean 15.2.2 (2014.2.2 x001 x003)
       Measurement Core 15.2.2 (2014.2.2 x001 x003)
       Median 15.2.2 (2014.2.2 x001 x003)
       Mezzotint 15.2.2
       Minimum 15.2.2 (2014.2.2 x001 x003)
       MMXCore Routines 15.2.2 (2014.2.2 x001 x003)
       Mosaic Tiles 15.2.2
       Multiprocessor Support 15.2.2 (2014.2.2 x001 x003)
       Neon Glow 15.2.2
       Note Paper 15.2.2
       NTSC Colors 15.2.2 (2014.2.2 x001 x003)
       Ocean Ripple 15.2.2
       OpenEXR 15.2.2
       Paint Daubs 15.2.2
       Palette Knife 15.2.2
       Patchwork 15.2.2
       Paths to Illustrator 15.2.2
       PCX 15.2.2 (2014.2.2 x001 x003)
       Photocopy 15.2.2
       Photoshop 3D Engine 15.2.2 (2014.2.2 x001 x003)
       Photoshop Touch 14.0
       Picture Package Filter 15.2.2 (2014.2.2 x001 x003)
       Pinch 15.2.2
       Pixar 15.2.2 (2014.2.2 x001 x003)
       Plaster 15.2.2
       Plastic Wrap 15.2.2
       PLY 15.2.2 (2014.2.2 x001 x003)
       PNG 15.2.2
       Pointillize 15.2.2
       Polar Coordinates 15.2.2
       Portable Bit Map 15.2.2 (2014.2.2 x001 x003)
       Poster Edges 15.2.2
       PRC 15.2.2 (2014.2.2 x001 x003)
       Radial Blur 15.2.2
       Radiance 15.2.2 (2014.2.2 x001 x003)
       Range 15.2.2 (2014.2.2 x001 x003)
       Read Watermark 4.0
       Render Color Lookup Grid NO VERSION
       Reticulation 15.2.2
       Ripple 15.2.2
       Rough Pastels 15.2.2
       Save for Web 15.2.2
       ScriptingSupport 15.2.2
       Shake Reduction 15.2.2
       Shear 15.2.2
       Skewness 15.2.2 (2014.2.2 x001 x003)
       Smart Blur 15.2.2
       Smudge Stick 15.2.2
       Solarize 15.2.2 (2014.2.2 x001 x003)
       Spatter 15.2.2
       Spherize 15.2.2
       Sponge 15.2.2
       Sprayed Strokes 15.2.2
       Stained Glass 15.2.2
       Stamp 15.2.2
       Standard Deviation 15.2.2 (2014.2.2 x001 x003)
       STL 15.2.2 (2014.2.2 x001 x003)
       Sumi-e 15.2.2
       Summation 15.2.2 (2014.2.2 x001 x003)
       Targa 15.2.2
       Texturizer 15.2.2
       Tiles 15.2.2
       Torn Edges 15.2.2
       Twirl 15.2.2
       U3D 15.2.2 (2014.2.2 x001 x003)
       Underpainting 15.2.2
       Vanishing Point 15.2.2
       Variance 15.2.2 (2014.2.2 x001 x003)
       Virtual Reality Modeling Language | VRML 15.2.2 (2014.2.2 x001 x003)
       Water Paper 15.2.2
       Watercolor 15.2.2
       Wave 15.2.2
       Wavefront|OBJ 15.2.2 (2014.2.2 x001 x003)
       WIA Support 15.2.2 (2014.2.2 x001 x003)
       Wind 15.2.2
       Wireless Bitmap 15.2.2 (2014.2.2 x001 x003)
       ZigZag 15.2.2
    Optional and third party plug-ins: NONE
    Plug-ins that failed to load: NONE
    Flash:
       Libraries
       Adobe Color Themes
    Installed TWAIN devices: NONE

  • How to fill the tables faglflexa and faglflext when creating a new document

    Hello all,
    I need to modify the field faglflexa-RMVCT when creating a new FI document , actually i'm using the transaction ABUMN,
    i tried to use manu user-exit to change this table unfortunately , I have not changed this entry .
    Could you please help me to find a solution for this problem?
    Thank you in advance,

    When you are defining the elements of the datatype there are columns where you can do what you need:
    <b>column type</b>: here you choose the type of data of the element
    it can be a standard type or a user defined one (if you click one time only it should appear an icon in the right for input help: click there and choose the type you need)
    <b>column occurence </b>: in a similar way of column type here you define the cardinality of the element (min occurence and max occurence)
    setting min occurrence: 1, max occurrence 1 or unbounded --> required
            mmin occurrence 0, max occurrence 0, 1 or unbounded --> optional
    about the attributes there are directly the choice between required or optional.
    <b> column details </b>: here you define the length of the  element if it is a string or a lot of other things if the type is a different one.
    I hope this will help you

  • In Photoshop CC14, can not open any files or create a new file.

    I will open photoshop (recent update and previous), and it will not allow me to open any files or create a new one. The blank screen with the tools just stays the same. Other apps such as Illustrator still work. I'm on Windows 8.1. Please help I need Photoshop for my business.

    I cannot open or create any files. | Mylenium's Error Code Database
    Mylenium

  • Is it possible to have track and region parameters boxes under the inspector hidden by default when creating a new track?

    I often need to access the effects section and/or select a different midi instrument and have to manual minimize these boxes. It would be nice if I could have these hidden by default as I'm accessing the portions covered by the track and region parameter boxes more frequently than I'm accessing the boxes themselves.
    Thanks!

    Before answering your question, you have to make sure you understand the difference between the different track types in GarageBand.
    Tracks, you record your music on
    There are three types of those Tracks.
    MIDI Tracks (aka Software Instrument Tracks)
    Audio Tracks (aka Real Instrument Tracks)
    Drummer Track (only one per Project)
    Global Tracks
    These are the Tracks that can be shown/hidden at the top of the Tracks Area for specific purposes.
    Arrangement Track
    Movie Track
    Transposition Track
    Tempo Track
    Master Track
    This Track can also be shown/hidden in the Tracks Area. Please note, you cannot delete that Track, only hide it, similar to the Global Tracks
    Regarding the Tracks you record your music on,  you can delete any of those. It doesn't matter if you created them or there are part of a Template (maybe that  is what you refer to as the default track). Once you delete the last Track, the "New Track Window" will pop up to add a new track.
    I will explain all that in much more detail in my manual "GarageBand X - How it Works".
    Hope that helps
    Edgar Rothermich
    http://DingDingMusic.com/Manuals/
    'I may receive some form of compensation, financial or otherwise, from my recommendation or link.'

  • PC Windows 7, Illustrator CC crashes when opening a file or creating a new file

    I have followed these suggestions on how to delete/reset the preferences but this did not work. Any ideas why this is happening with Illustrator, all of the other CC programs seem to still open and work fine?

    I have followed these suggestions on how to delete/reset the preferences but this did not work. Any ideas why this is happening with Illustrator, all of the other CC programs seem to still open and work fine?

  • Illustrator CC2014 does not respond whenever I open a file or create a new file. I have tried restarting my PC (Windows 8) and uninstalling and reinstalling Illustrator.

    I used a trial version first before purchasing the program. I have restarted my computer and uninstalling and reinstalling the program. I haven't added anything to the program. Thanks in advance to anyone able to answer my question.

    Whitney,
    Did you reinstall using the full three step way (otherwise strange things may linger)?
    Uninstall (ticking the box to delete the preferences), run the Cleaner Tool, and reinstall.
    http://www.adobe.com/support/contact/cscleanertool.html

  • Unable to upload txt file when creating new message

    Hi Expert,
    We installed SolMan 7.1, but we are not able to upload txt file when
    create a new message, detailed steps as below:
    1. Click on “New
      Message” under “Common Tasks” in the left side
    2. Click on
      “Attachment” under “Create Message”
    3. Click on “Add”
      under “Attachment”
    4. Select file and
      click on “OK”
    5. But as the result, it says “No attachments. Select Add to
      upload a new attachment.”
    Could you please help advise the reason and solution?
    BR
    Takashi

    Hi Vikram,
    Thanks for your reply.
    I have tried again and found that, it seems if the file size is 0, it can't be uploaed; if the size if bigger than 0, then it can be uploaded.
    So I close this discussion now. Thank you!
    BR
    Takashi

  • To create a new file in application server and transfer data to ti

    i am doing the following where i have to create a new file in application server and transfer data to tht file from an internal table.but its saying file cant be opened.the path i am giving to parameter p_prefil is /tmp/prachi.txt.
    wats the prob..can anyone help.
    DATA:L_WA_FINAL TYPE TY_FINAL,
         l_wa_string type string.
    OPEN DATASET P_PREFIL FOR OUTPUT IN text mode encoding default.
    if sy-subrc <> 0.
    write: ' file cannot be opened'.
    stop.
    endif.
    LOOP AT P_I_FINAL INTO L_WA_FINAL.
    move l_wa_final to l_wa_string.
    TRANSFER l_wa_string TO P_PREFIL.
    if sy-subrc <> 0.
    write: 'file can not be written'.
    stop.
    endif.
    clear l_wa_final.
    ENDLOOP.
    CLOSE DATASET P_PREFIL.
    if sy-subrc <> 0.
    write: ' file cannot be closed'.
    stop.
    endif.

    DATA:L_WA_FINAL TYPE TY_FINAL,
    l_wa_string type string.
    OPEN DATASET P_PREFIL FOR OUTPUT IN text mode encoding default.
    if sy-subrc ne 0.
    write: ' file cannot be opened'.
    stop.
    endif.
    LOOP AT P_I_FINAL INTO L_WA_FINAL.
    move l_wa_final to l_wa_string.
    TRANSFER l_wa_string TO P_PREFIL.
    write: 'file can not be written'.
    clear l_wa_final.
    ENDLOOP.
    CLOSE DATASET P_PREFIL.
    if sy-subrc ne  0.
    write: ' file cannot be closed'.
    stop.
    endif.

  • Use diff3 to create a new file based on "deltas"

    I had som dos software once... from Burton System, nifty. Tlib.
    Unfornately I have dumped the manuals.
    I need to create a new file based on deltas between to others, and I thought
    diff3 could do the trick; the thing is that i cant remember how.
    I want to sort bash_history to one file, and then make a diff between bash_history and "bash_sort".
    then i want to "uniq -d <bash_sort >bash_dups".
    based on this file, I want to use diff3 to recreate bash_history;
    unsorted without any duplicate lines, in kindof same way as the appeard.
    It is only outof curiosity, because i wrote a thing in bash and sed, which does
    it for me. (together with uniq and sort).
    but the technique is very useful, so feel free...
    thanks
    Mc Geek

    mc Geek wrote:
    Thanks for answering.
    first i have my .bash_history file
    I sort that to create bash_sorted.
    then i make the sorted file uniqe with uniq -d <bash_sorted >bash_uniqe.
    Its easy to make a diff .bash_history bash_sorted to recreate bash_history.
    and it is easy to create a diff between bash_unique and bash_sorted, which
    makes me able to recreate the bash sorted file.
    I'm not sure exactly what this achieves...
    the thing is I belive there is a (quircky) way i can use diff/diff3 to recreate
    only the uniqe lines of .bash_history.
    Are you trying to create a file which contains all the commands in .bash_history without repeats? Or are you trying to create a file which contains only those commands which occur exactly once? That is, you want to get rid of all occurrences of commands which occur multiple times.
    Its like using the difference between bash_sort and bash_uniqe as a kindof
    scaling factor and the diff between .bash_history and bash_sort.
    so that I maybe run a diff script on the the diff between .bash_history and bash_sort, and by that are able to recreate a .bash_history with only unique lines.
    Once you have bash_sort, why not just do
    uniq bash_sort
    to get a list without any repeats? This will work if you want to keep one copy of commands which appear multiple times but, obviously, if you want to eliminate all copies of such commands, it won't do what you want.
    - cfr

  • Is there a way to reduce the size of a final PDF created for print when saving a file?

    Is there a way to reduce the size of a final PDF created for print when saving in any software (especially illustrator)? I don't want any quality to decrease at the same time. Thanks!

    Personally I would avoid optimizing the PDF's via Adobe Acrobat Pro unless you understand what you are removing from the PDF; having said that, it is the most effective way to reduce the file-size in the right hands.
    If I am sending out layouts for commercial print I change my default Print / Export setting from Standard to PDF/A-1b:2005 (CMYK). This will resolve a lot of common print problems for print-ready documents and it should embed your fonts and flatten transparencies etc.
    If your document is still too large you run an Audit Space Usage using Adobe Acrobat Pro. In the left pane enable 'Content' and then hit the button in the top left corner of the Content Pane and choose Audit Space Usage.

  • Generally when creating a Word file from either a Mac or Win7 pc and opening it on two different machines (either one first) it always prompts that the file is open and will be opened as read only. However opening a CSS file does not prompt that it is alr

    Generally when creating a Word file from either a Mac or Win7 pc and opening it on two different machines (either one first) it always prompts that the file is open and will be opened as read only.
    However opening a CSS file does not prompt that it is already open on or from any machine which is causing code edits to be lost.
    What we found from out testing:
    - The file can be saved from one user to the server and WILL NOT PROMPT on other machines until the saving machine has the Dreamweaver program closed completely
    - The file can be closed and  Dreamweaver minimised to the launch bar but it still will not register on other machines that it has been changed.
    - Also, until the  Dreamweaver program is closed on the machines, it will continue to open it's saved version of the file. 
    Example Scenario:
    - User 1 opens test.css (which is 2000 lines) and adds some code to the end of the file to bring it up to 2500 lines
    - Meanwhile User 2 opens test.css as well (opens as 2000 lines as User 1’s edits have not yet been saved) and adds in code to bring it to 2300 lines
    - User 1 saves his file and closes it - but  Dreamweaver is still open.
    - User 2 also saves his file and leaves  Dreamweaver  open.
    - The server will report the size and last edit of the file the same as User 2 as he was the last person to save it (and if you open from the Win7 Machine it will show as User 2’s 2300 line version)
    - If User 1 then open's the file again (from either the 'recent' in Dreamweaver OR clicking on the file directly in Finder...which version opens.... The version that User 1 saved! Not the true version on the server, but the version that User 1 edited and saved with 2500 lines in it.
    - Same for User 2, he will open 'his' version with 2300 lines in.
    Other information:
    - Files are opened directly from the server
    - Sometimes the users will save incrementally and re-open
    - Most of the time users will save incrementally and keep the files open
    - The users will never not save incrementally and just save when closing the file once finished
    - The users are usually working on the files all day
    - It is always the bottom lines of code that are lost. It could be a case of the two versions being mixed up and cutting off the newly added lines based on the line count (possibly).
    It is as if Dreamweaver is holding a cache of the version locally and then only properly looking back to the server when it has been completely closed. It is very difficult to see how the server is causing such an impact on these files, there are very few logs which are giving any indication to the root cause of the problems.
    Anyone know if this is a known issue?
    Is there a way that there can be a featured implemented on the server that doesn't allow another user to open a file if it is already open on another machine?
    Thanks

    Your server file handling has nothing, and really nothing to do with Adobe software. If files don't get locked for (over-)writing and/or lose connection to the program opening them, then your server is misconfigured. It's as plain and simple and that. Anything from "known file types"/ file associations not being set correctly, MIME types being botched, crooked user privileges and file permissions, missing Mac server extensions, delayed file writing on the server, generic network timeout issues and what have you. Either way, you have written a longwinded post with no real value since you haven't bothered to provide any proper technical info, most notably about the alleged server. Either way, the only way you can "fix" it is by straightening out your server and network configuration, not some magic switch in Adobe's software.
    Mylenium

  • How to change the default save encoding of the dvm files when create dvm???

    When I creating a DVM(domain-value mapping) in Chinese on the ESB control and confirm it, then restarted the SOA service, the DVM that I created in Chinese disappeared from ESB control. All the maps(both English and Chinese ) are in DVM Repository.
    After I updated the encoding from ‘UTF-8’ to ‘GB2312’ in the three files below, and restarted the SOA service, the DVM in Chinese appeared on ESB control.
    But when I adding the second row in Chinese and save it, then restart the SOA service, the DVM in Chinese disappeared from ESB Control once again. Because the encoding in the three files below is updated from ‘GB2312’ to ‘UTF-8’ .
    Files:
    C:\product\10.1.3.1\OracleAS_1\integration\esb\oraesb\artifacts\store\metadata\files\dvm.def.xml
    C:\product\10.1.3.1\OracleAS_1\integration\esb\oraesb\artifacts\store\metadata\files\dvm\Chinese.xml.def.xml
    C:\product\10.1.3.1\OracleAS_1\integration\esb\oraesb\artifacts\store\content\files\dvm\Chinese.xml_1.0
    How to change the default save encoding of the dvm files when create dvm in ESB control ???

    I have the same problem.  When I updated to Mavericks now the bookmarks bar font is huge.  I liked it the way it was before.  I liked the smaller font.  Also wish I could change the color of the sidebar and font/folders too.
    I tried to see in preferences if there was anyway to change it, but I don't see anything there.

  • When creating a new DPS should I use sizes offered by InDesign or the display size of the device?

    Hello all,
    When creating a new DPS, should I use the sizes offered by InDesign or the display size of the device?  I ran into this question when I was looking up the sizes of different devices and found that iPhone 5s, iPhone5c, and iPhone4s sizes differ than the defauly dimensions offered by InDesign. 
    Also, should I worry about the ppi resolution?  With iPhone, they all seem to be 326ppi but when dealing with other devices is this something that I should take into consideration?  Ideally, I could be creating DPS apps for all devices offered in the Digital Publishing drop down in InDesign (iPhone, iPad, Kindle Fire/Nook, and Android).
    Thank you for any help you can provide.
    By the way, if it helps I am using InDesign CC.

    Using 1024x768 and creating PDF articles will get you OK with both iPad resolutions, and, as Bob L. says, quite decent "one size fits all" result for all other devices.

Maybe you are looking for

  • Upgrade to 6.2 or 6.5

    Does anyone plan to upgrade to 6.5? Also, would we need a second License if we were going to install Essbase on a test box and a production box??Michael

  • File Formats are limited?

    I imported a scanned tif. Silhoetted the area I wanted to mask, created a clipping path and tried to save as an eps but my saving options were limited to Photoshop, LDF, PS PDF, PS Raw and tiff. I didn't get the 20 or so other saving options which in

  • HD Video Recording app missing?

    HD Video Recording app missing? I restored my iPhone 4S with my latest backup from previous model, but HD camera seems to be lost. What should I do? Thx for any help.

  • UPGRADE  RELATED TO OSS MODIFICATIONS

    Hi all, we are on verge of upgradtion form 4.6c to ECC 6.00 we have a lot of programs where we have applied oss notes. Do i need to apply the oss notes in the new version ECC 6.00 too. How can i know whether SAP has provided the same note modificatio

  • Camera trying to sync with pc

    When ever I place my iPhone into its dock a menu pops up that says Camera connected. Select a program to launch for this action: then lists programs. MS word, Photoshop, etc. It also has the "always use this program for this action" box to click. The