Regarding file storage

i have an application,whenever the user fills the application and clicks on save button all the input should be stored in a file....like wise all the inputs from different users will be stored in a file ,for each user input it is called as record ok.
so finaly at the end of the week let us assume we got 100 records.
All these 100 records should be cleared and stored in memory or whatever,so that for later purpose we can traverse again.
The process should contain like wise.
so how can i update the file for every week and store it in memory.
but this should be done without using database.
please help me with a sample code.
i think all got it...!!!

You be able use XML to format data in convenient way within the file.
To update file you can use java.io.RandomAccessFile.
To manipulate XML file you can use JDOM.

Similar Messages

  • What is Adobe's policy regarding ownership of files uploaded to my Creative Cloud file storage?

    If I place files in my Creative Cloud file storage, does Adobe have a policy regarding employee access to these files or whether Adobe claims any rights to use my files?

    Thanks Kevin.
    I will add that if someone uses the Report abuse link on a file you share it will be accessed per the Terms of Use.
    The only other time a file would be accessed is with explicit permission from the customer for a bug investigation. In that case we would investigate the bug but not use the file for any other purpose.

  • Where can I find the java solution of online file storage ?

    Hi,
    I am facing a project about online file storage like box.net,xdrive..User can upload/download through http(web application) and ftp client or through other protocol such as SMB,share files,full-featured text index and search,the file directory structure and file records maybe persist in database(virtual directory)..
    There are many online file storage service website in internet,but I can not find any technique article about how to build there website,I think I maybe need bothside code in the web server and the ftp server(different server may cause different code) or other server(such as SMB server) to process such as file uploading(write IO file ,write record to database,build file text index).
    Any suggest is appreciated.
    Thanks and regards.
    L.J.W

    YiNing,
    Did you check this link,
    http://help.sap.com/saphelp_nw04/helpdata/en/87/3ef4403ae3db12e10000000a155106/content.htm
    Does it help? Also did you look into the Java Docs Section,
    https://help.sap.com/javadocs/index.html
    Regards
    Bhavesh

  • Azure Files Storage not accessible.

    Hi,
    As primary storage mean we are using Azure File storage (smb shares) for our application.
    In the logs we find out that sometimes the shares aren't accessible. Over the last month it happened 9-10 times. In some cases it lasted up to 30 seconds. What can be reason for this? Is it because of preview state?  
    Thanks,
    Kamil

    Hi Kamil,
    It might be due to the Preview Status or due to throttling as well.
    To determine the exact cause, we would require more details which cannot be shared on a public forum.
    Please raise a Technical Case for us to be able to assist you further.
    You could use the following link to raise a technical case:
    http://azure.microsoft.com/en-in/support/options/
    Regards,
    Malar.

  • QM Recording File Storage Location

    I am working on my first QM installation and am a little confused as to what to enter in the Recording File Storage location on the Configuration Setup.  This was ordered and planned as a 2 server installation - a base Server and a Recording server.  I am running through the Configuration Setup on the Base server and am at the point where I have to define either a Local or External Storage location.  So, should this location be a location on the seperate Recording server?

    Make sure the drive is formatted Mac OS Extended (Journaled)
    1. Quit iPhoto
    2. Copy the iPhoto Library from your Pictures Folder to the External Disk.
    3. Hold down the option (or alt) key while launching iPhoto. From the resulting menu select 'Choose Library' and navigate to the new location. From that point on this will be the default location of your library.
    4. Test the library and when you're sure all is well, trash the one on your internal HD to free up space.
    You cannot move the Library to a server of any kind.
    See this article
    http://support.apple.com/kb/TS5168
    for more. Note the comment:
    “Additionally, storing the iPhoto library on a network rather than locally on your computer can also lead to poor performance or data loss.”
    Regards
    TD

  • File size limit of 2gb on File Storage from Linux mount

    Hi!
    I setup a storage account and used the File Storage (preview). I have followed instructions at
    http://blogs.msdn.com/b/windowsazurestorage/archive/2014/05/12/introducing-microsoft-azure-file-service.aspx
    I created a CentOS 7 virtual server and mounted the system as
    mount -t cifs //MYSTORAGE.file.core.windows.net/MYSHARE /mnt/MYMOUNTPOINT -o vers=2.1,username=MYUSER,password=MYPASS,dir_mode=0777,file_mode=0777
    The problem is that I have a file size limit of 2gb on that mount. Not on other disks. 
    What am I doing wrong?

    Hi,
    I would suggest you check your steps with this video:
    http://channel9.msdn.com/Blogs/Open/Shared-storage-on-Linux-via-Azure-Files-Preview-Part-1, hope this could give you some tips.
    Best Regards,
    Jambor
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Can I use one 2tb external hard drive for time capsule and file storage?

    I would like to use time capsule, but also keep the hard drive on my desktop for file storage. Can I do this?

    Apple advises against doing that.
    Any data stored on the disk that Time Machine is backing up to can not be backed up.
    Plus the data outside of the Time Machine backup database cause problems when Time Machine starts cleaned up old backups to recover space for new backups.
    For these reason it is advised that the Time Capsule disk be used for one or the other but not both.
    Allan

  • .tdm file storage vi's slow editing vi's

    I am developing software using Labview 8.5 and have recently added some file storage vi's for the .tdm format for use in DIAdem 10.2.  Upon using the open storage, set file properties, write channel group, write channel, and close storage vi's, the editing has become extremely slow - for any operation I try to perform there is a 10-15seconds delay before it occurs.  If I remove the .tdm vi's from my diagram then the editing goes back to normal and changes/operations occur almost instantaneously as expected.  My project is not large as far as I am concerned (Front panel - 121k, block diagram=1538k, code=0.2k, data=957k, total=2617k, total vi size on disk=389k)
    I saw a similar post to the .tdm storage vi's causing this to occur back in 2005 and was supposed to have  been on the fix list but it does not appear that it has 3 years later.  I am sure many others are using these vi's so not sure what I may have done differently to cause the editing to slow down so much.  
    Anyone with ideas and fix would be greatly appreciated as I cannot afford to sit around 10-15 seconds for every step of my developement.

    Yes, sometimes Storage VIs are slow. But They are Express VIs, supplying the easy configuration for users. If you feel they are too slow, I suggest that you can use TDMS files instead.

  • My home network has an Airport Extreme w/Time Capsule as the base and then an Airport Express and a second Airport Extreme to reach different areas of the house.  Is there a way to use the second Airport Extreme for file storage on this network?

    My home network has an Airport Extreme w/Time Capsule as the base and then an Airport Express and a second Airport Extreme to reach different areas of the house.  Is there a way to use the second Airport Extreme for file storage on this network?  Network is administered through an iMac running OS X Yosemite 10.10.2.  Ideally, would like for the second Airport Extreme hard drive to appear on the list of devices in the Finder window.

    Ok.. gottcha
    The problem is network wise.. Yosemite is about equal to tin cans and string.. pathetic.
    Here is my usual set of instructions to get anything working on Yosemite.
    The best way to fix problems is a full factory reset of all the AE in the network.
    Factory reset universal
    Power off the AE.. ie pull the power cord or power off at the wall.. wait 10sec.. hold in the reset button.. be gentle.. power on again still holding in reset.. and keep holding it in for another 10sec. You may need some help as it is hard to both hold in reset and apply power. It will show success by rapidly blinking the front led. Release the reset.. and wait a couple of min for the AE to reset and come back with factory settings. If the front LED doesn’t blink rapidly you missed it and simply try again. The reset is fairly fragile in these.. press it so you feel it just click and no more.. I have seen people bend the lever or even break it. I use a toothpick as tool.
    Then redo the setup from the computer with Yosemite.
    1. Use very short names.. NOT APPLE RECOMMENDED names. No spaces and pure alphanumerics.
    eg AEgen5 and AEwifi for basestation and wireless respectively.
    Even better if the issue is more wireless use AE24ghz and AE5ghz with fixed channels as this also seems to help stop the nonsense.
    2. Use all passwords that also comply but can be a bit longer. ie 8-20 characters mixed case and numbers.. no non-alphanumerics.
    3. Ensure the AE always takes the same IP address.. this is not a problem for AE which is router.. it is a problem for AE which is bridged.. you will need to set static IP in the main router by dhcp reservations or use static IP in the AE which is tricky.
    4. Check your share name on the computer is not changing.. make sure it also complies with the above.. short no spaces and pure alphanumeric..
    5. Make sure IPv6 is set to link-local only in the computer. For example wireless open the network preferences, wireless and advanced / TCP/IP.. and fix the IPv6. to link-local only.
    6. Now mount the disk of the second AE in finder... manually.
    Use Go, Connect to Server and type in the AE ip address.
    SMB://10.0.1.2
    Where you will replace that address with the actual address. The network resource should be discovered and then it will request the password.. type that in and make sure you tick to save it in your keychain.
    There is a lot more jiggery pokery you can try but the above is a good start.. if you find it still unreliable.. don't be surprised.
    Do as much as you want of the above... not all of it is necessary.. only if you want it reliable.. or as reliable as Yosemite in its current incarnation can manage.
    The most important thing is point 6.. mount the disk using direct IP address and not names.. dns in Yosemite is fatally flawed.
    See http://arstechnica.com/apple/2015/01/why-dns-in-os-x-10-10-is-broken-and-what-yo u-can-do-to-fix-it/

  • Azure File Storage - Creating a directory at the root level using REST

    I have a Xamarin / iOS project, and looking to use Azure File Share as a back-end.
    With that in mind, I'm playing around with the REST API and have generally got things working with (a) Blobs and (b) Account-level access to Files.
    Specifically, I can successfully request a list of File Shares, so I have the general call structure worked out.
    However, I'm stumped about the exact incantation necessary to create a new directory at the root level of a share.
    I've tried the following three variants, but all result in Forbidden - Server failed to authenticate the request
    request.Host: myaccount.file.core.windows.net
    request.AbsolutePath: /myshare/subdirname1
    request.Query: ?restype=directory
    string to sign: PUT\n\n\n\n\n\n\n\n\n\n\n\nx-ms-date:Sun, 30 Nov 2014 16:07:25 GMT\nx-ms-version:2014-02-14\n/myaccount/myshare/subdirname1\nrestype:directory
    request.Host: myaccount.file.core.windows.net
    request.AbsolutePath: /myshare/subdirname1/
    request.Query: ?restype=directory
    string to sign: PUT\n\n\n\n\n\n\n\n\n\n\n\nx-ms-date:Sun, 30 Nov 2014 16:07:58 GMT\nx-ms-version:2014-02-14\n/myaccount/myshare/subdirname1/\nrestype:directory
    request.Host: myaccount.file.core.windows.net
    request.AbsolutePath: /myshare//subdirname1
    request.Query: ?restype=directory
    string to sign: PUT\n\n\n\n\n\n\n\n\n\n\n\nx-ms-date:Sun, 30 Nov 2014 16:06:16 GMT\nx-ms-version:2014-02-14\n/myaccount/myshare//subdirname1\nrestype:directory
    I did note that trying to get the contents of an (empty) root directory doesn't behave quite the way I'd expect
    request.Host: myaccount.file.core.windows.net
    request.AbsolutePath: /myshare/
    request.Query: ?resttype=directory&comp=list
    string to sign: GET\n\n\n\n\n\n\n\n\n\n\n\nx-ms-date:Sun, 30 Nov 2014 16:23:17 GMT\nx-ms-version:2014-02-14\n/myaccount/myshare/\ncomp:list\nrestype:directory
    Authenticates OK, but generates FAILURE BadRequest - The requested URI does not represent any resource on the server.
    Which is different behaviour from pulling the list of blobs from an empty container (returns 200 with an empty xml list of blobs.
    I've been through the File Service REST API document (dn167006) and found the azurestoragesamples on codeplex, but the former is unclear on working with the root level and the latter is from 2011 and predates File Storage.
    Any insights?

    First, thank you for the quick response and the suggestion about looking at the response content for the string to sign being used. I wasn't aware of that and obviously it's a fantastic resource for figuring this kind of stuff out.
    And what it immediately revealed is it wasn't some subtle oddity in my construction of the STS, it was that I was doing a client.GetAsync(...) and not a client.PutAsync(...). DOH!
    With that sorted, it was trivial to fix.
    In terms of the List Directories and Files, though, there's still a problem.
    FAILURE BadRequest - The requested URI does not represent any resource on the server.
       request.Host: myaccount.file.core.windows.net
       request.AbsolutePath: /myshare
       request.Query: ?resttype=directory&comp=list
       urlQuery: myshare?resttype=directory&comp=list
       string to sign: GET\n\n\n\n\n\n\n\n\n\n\n\nx-ms-date:Sun, 30 Nov 2014 18:40:04 GMT\nx-ms-version:2014-02-14\n/myaccount/myshare\ncomp:list\nresttype:directory
    The response XML is
    <?xml version="1.0" encoding="utf-8"?>
    <Error>
        <Code>InvalidUri</Code>
        <Message>The requested URI does not represent any resource on the server.\nRequestId:33d61aed-001a-0020-0cbd-51aea8000000\nTime:2014-11-30T18:40:04.9712797Z</Message>
        <UriPath>/myshare</UriPath>
    </Error>
    I originally thought it might be because the share was empty. However, I'm targeting the same share in which I created (apparently successfully) the subdirectory.
    So I'm still confuzzled on that.

  • Regarding file content conversion

    Re: regarding file content conversion  
    Posted: Sep 25, 2008 11:30 AM    in response to: kummari     Edit      E-mail this message      Reply 
    i tried.but m getting this error
    Message processing failed. Cause: com.sap.aii.af.ra.ms.api.RecoverableException: Exception in XML Parser (format problem?):'java.lang.Exception: Message processing failed in XML parser: 'Conversion configuration error: Unknown structure 'ns1:MT_HyperionReport' found in document', probably configuration error in file adapter (XML parser error)': java.lang.Exception: Exception in XML Parser (format problem?):'java.lang.Exception: Message processing failed in XML parser: 'Conversion configuration error: Unknown structure 'ns1:MT_HyperionReport' found in document', probably configuration error in file adapter (XML parser error)'
    Actually my input structure is:
    <?xml version="1.0" encoding="UTF-8"?>
    <ns0:MT_ECCReport xmlns:ns0="urn:syngenta.com:i_ecc_erp:se:global:fi_reports:common">
    <ACTFiscalyear>siva</ACTFiscalyear>
    <StartPeriod>44</StartPeriod>
    <EndPeriod>55</EndPeriod>
    <LineItems>
    <ReportingUnit>rama</ReportingUnit>
    <ProfitCentre>844</ProfitCentre>
    <Amount>855</Amount>
    </LineItems>
    </ns0:MT_ECCReport>
    and in FCC i wrote below these three lines:
    LineItems.fieldSeparator 'nl'
    MT_HyperionReport.fieldSeparator 'nl'
    LineItems.fieldSeparator 'nl'
    So please tell me what is wrong in this

    MT_HyperionReport is your message type and this represents the top level node of your message. Below this you have your records. You have MT_HyperionReport as a record type which is clearly not going to work.
    In the content conversion parameters section the following fields should be filled, you dont need to specify Recordset if your XML structure does not include this node see SAPhelp example:
    Document Name: MT_HyperionReport
    Document Namespace: <look at your message type in the designer>
    Recordset Structure: Record_type1,<occurrence 1..>, Record_type2,<occurrence 1..>
    In the parameter box:
    Record_type1.fieldSeparator
    Record_type1.fieldNames
    ignoreRecordsetName value true
    Record_type2...
    The SAP help on this is pretty clear and comprehensive...
    http://help.sap.com/saphelp_nw04/helpdata/en/0f/80243b4a66ae0ce10000000a11402f/frameset.htm

  • Query regarding file content conversion using file adapter

    Hi All
    I have a question regarding file content conversion in file adapter.
    I have a file coming in the following format.
    AA,111,222,333
    BB,444,555,666
    CC,777,888,999
    My incoming message structure has a hierarchy. The CC record is a structure part of BB record. BB record is a structure part of AA record. It is like this:
    AA,111,222,333
    <<BB,444,555,666>>
    <<<<CC,777,888,999>>>>
    After file content conversion, in the resulted xml, i am getting a flat hierarchy instead of nested hierarchy.
    Is it possible to get a nested hierarchy as a result of file content conversion?
    Please let me know
    Thanks
    Chandra

    Hi Udo
    According to your suggestion, I am trying to use mapping.
    I am getting a flat file and i am reading it.
    This is my source structure:
    AA,11,22,33
    BB,44,55,66
    CC,77,88,99
    This is my required targer structure:
    AA,11,22,33
    <<BB,44,55,66>>
    <<<<CC,77,88,99>>>>
    To explain this, BB record can have multiple records of CC records.
    AA records can have multiple records of BB record.
    I am using removecontext node function.
    CC (Source)  (removecontext)-> CC (target structure)
    But here, when i rightclick on source CC field in the mapping editor, i cannot see any other context except root node. So, how can i proceed here??
    Many Thanks
    Chandra

  • CCM 2.0 - Files Storage for high volume of files

    Hi all,
    I have seen in one message the following information:
    <i>1. Files storage.
    My point is that I think you've created a virtual folder on the SRM Server in SICF, which means that all your files are stored internally in the database, and not physically on the server.
    The most simple way is to create a physical folder on the server OS, and then create analias in SICF to this folder. You then will be abble to load in mass the pictures on the server using FTP, or network Share.</i>
    I want to upload images in the Catalog (CCM 2.0) and in my case I have high volume of files. Where is the best place to stored this data, in the database or in the server?
    And if it is in the server, how I can create an alias?
    Many thanks!!
    Regards

    Hi ,
    What we had done for image upload for CCM 2.0 was like this:
    1. in SE80 go to MIME repository -> drill down to services -> bc /sap/bsp - >Create a personal folder
    2. Import your image .jpeg in this folder.
    3. Derive an URL with the structue : server name/domain name/services/file name
    4. test this URL in IE browser ,it should open the picture in IE for you.
    5. then paste this URL in the characteristic 'image' of an item in master catalog in CAT
    with this in EBP we could see the photos of the items.
    BR
    Dinesh
    reward if helps

  • Regarding file export

    Hi,
    I have some problem regarding file export from java to some word or excel. I have a Jtable in which I fill the data dynamically now I wan't to get that data into an excel sheet with just one click. Regarding .doc I am writing the file but how to do in excel sheet having columns defined.
    Best Regards,
    Sreedhar

    A good Java API for creating or accessing Excel files is POI-HSSF: http://jakarta.apache.org/poi/hssf/index.html

  • A way to qeury Azure File Storage direct from Automation?

    Hello.
    I am trying to create a runbook that will query a list of files in Azure File Storage. This works fine from a powershell prompt on an Azure VM, but it appears the same methods in Azure Automation return different objects:
    Sample code to just list the files in a given folder:
    workflow Get-AzureFileStorageInfo
    # Get Azure File Storage Name and Key
    $storageName = Get-AutomationVariable -Name 'File Storage Name'
    $storageKey = Get-AutomationVariable -Name 'File Storage Key'
    # Get subscription and certificate information
    $subscriptionName = Get-AutomationVariable -Name "Subscription Name"
    $connection = Get-AutomationConnection -Name "Azure Connection"
    $certificate = Get-AutomationCertificate -Name $connection.AutomationCertificateName
    # Set the current subscription
    Set-AzureSubscription -SubscriptionName $subscriptionName -SubscriptionId $connection.SubscriptionID -Certificate $certificate
    Select-AzureSubscription -Current $subscriptionName
    # get azure file storage context and share object
    #$ctx = New-AzureStorageContext $StorageName $StorageKey
    $s = Get-AzureStorageShare -Name $StorageName
    # get list of files from Azure File Storage
    Write-Output "Files in the DEMO folder..."
    $DemoFiles = Get-AzureStorageFile -Share $s -Path "DEMO"
    Write-Output $DemoFiles
    I get this error when I run it:
    6/02/2015 4:54:34 PM, Error: Get-AzureStorageShare : Cannot bind parameter 'Context'. Cannot convert the 
    "Microsoft.WindowsAzure.Commands.Common.Storage.AzureStorageContext" value of type 
    "Deserialized.Microsoft.WindowsAzure.Commands.Common.Storage.AzureStorageContext" to type 
    "Microsoft.WindowsAzure.Commands.Common.Storage.AzureStorageContext".
    At Get-AzureFileStorageInfo:25 char:25

        + CategoryInfo          : InvalidArgument: (:) [Get-AzureStorageShare], ParameterBindingException
        + FullyQualifiedErrorId : 
    CannotConvertArgumentNoMessage,Microsoft.WindowsAzure.Commands.Storage.File.Cmdlet.GetAzureStorageShare
    I am obviously calling it wrong from Azure Automation. Is there sample code online somewhere that can demo the right way to call it? Thanks!
    Matt

    Perfect. That worked! Thanks!
    For others who might be following this I made the change as shown below:
    workflow Get-AzureFileStorageInfo
    # Get Azure File Storage Name and Key
    $storageName = Get-AutomationVariable -Name 'File Storage Name'
    $storageKey = Get-AutomationVariable -Name 'File Storage Key'
    # Get subscription and certificate information
    $subscriptionName = Get-AutomationVariable -Name "Subscription Name"
    $connection = Get-AutomationConnection -Name "Azure Connection"
    $certificate = Get-AutomationCertificate -Name $connection.AutomationCertificateName
    # Set the current subscription
    Set-AzureSubscription -SubscriptionName $subscriptionName -SubscriptionId $connection.SubscriptionID -Certificate $certificate
    Select-AzureSubscription -Current $subscriptionName
    InlineScript {
    # get azure file storage context and share object
    $ctx = New-AzureStorageContext $Using:StorageName $Using:StorageKey
    $s = Get-AzureStorageShare -Context $ctx
    # get list of files from Azure
    Write-Output "Files in the DEMO folder..."
    $DemoFiles = Get-AzureStorageFile -Share $s -Path "DEMO"
    Write-Output $DemoFiles

Maybe you are looking for

  • How can we assign different colours to different records(line items) in alv

    how can we assign different colours to different records(line items) in alv reporting?

  • Block Stock to QM Stock

    Hi Gurus, We have a requirement for moving Block stock to QM stock ( with stock posting). Once the materials is received the stock will be posted to block stock and when needed the blockstock will be moved to Qulaity and checked and posted accordingl

  • Quality rejection reports

    dear all please tell me t-codes and reports for material rejected or rework from quality managenent. what are the standard reports available in sap for quality inspection results analysis? Prashant

  • How to perform a creamy picture like this?

    http://www.flickr.com/photos/pootaro/5685848921/in/set-72157626606448046/ http://www.flickr.com/photos/pootaro/5686435158/in/set-72157626606448046/ These 2 pics were shot in high iso settings which should make lots of noise, but they looks very clean

  • Bat files

    Does anyone know how to run a .bat file from within a pl/sql script or trigger. I am using oracle 8.1.6 on windows 2000 THnaks in advance