Mismatch between the Content Database size and the total of each site collection' storage used.

Hi All,
Environment:  SharePoint 2010 with SP2.
Issue: One of the Content databases size in our farm shows 200 GB as used. There are 25 site collections in the DB and we counted
the total storage used of all site collections in that Content DB and is not more than 40 GB. (used "enumsites" command and counted the each sitecollections storage used).
What actions/troubleshooting were done?
Ran one script which will find the actual size of site collection and how much space used in the disk. But didn’t find major difference in the report.
Checked “Deleted from end user recycle bin “in all the site collections and no major storage is noticed.
Planning to Detach the problematic Content DB and attach ,will check whether any major effect is there
Why the Content DB shows 200 GB as used when the total storage used of all site collections is just 40 GB.
Appreciate suggestions from any one.
Best Regards,
Pavan Kumar Sapara.
s p kumar

Hi,
Thanks for your reply.
As there is only 20 MB of unallocated space for the above said DB, SQL DB team informed that they cannot perform the DB shrink at this moment.
So we are thinking to Offload all the site collections to other new DB and then will Drop the problematic database. In this way we can overcome the
issue.
Answer for your queries.
Are the mismatched sizes causing an issue? Are you short on diskspace for DB storage or SQL backups?
No, there is no issue with the mismatched sizes. We are not on short on disk space. We just worried why it occupies that much size(200 GB) when
the total storage used of all site collections in that DB is 40 GB.
Best Regards,
Pavan Kumar Sapara.
s p kumar

Similar Messages

  • SP 2013 Upgrade error - web application is configured with claims authentication mode however the content database you are trying to attach is intended to be used against a windows classic authentication mode.

    Hi there,
    I get this error when I perform a DB Attach upgrade from SharePoint 2010 to SharePoint 2013. 
    "web application is configured with claims authentication mode however the content database you are trying to attach is intended to be used against a windows classic authentication mode."
    Any help is appreciated. Thanks.

    There is other way of fixing this issue apart from what Amit mentioned. Create a classic based web application in SP 2013 using PowerShell.
    New-SPWebApplication -Name "TestApplication" -ApplicationPool "TestApplicationAppPool" -AuthenticationMethod "NTLM" -ApplicationPoolAccount (Get-SPManagedAccount "sppoc\spfarm") -Port 100 -URL "http://sp2013demo"
    Now mount the content database from SP 2010 on to the web application created above 
    Mount-SPContentDatabase WSS_Content_100 -DatabaseServer SQL2012Demo -WebApplication http://sp2013demo:100
    Once the mount is complete, convert the web application to use claims and migrate the user to use claims identity.
    Convert-SPWebApplication -Identity "http://sp2013demo:100" -To Claims –RetainPermissions -Force
    $w = Get-SPWebApplication "http://sp2013demo:100"
    $w.MigrateUsers($True)
    See my blog post about it: http://www.sharepointnadeem.com/2014/01/upgrade-from-sharepoint-2010-classic.html
    Please remember to up-vote or mark the reply as answer if you find it helpful.

  • Database size and Storage Metrics are mismatching

    Hi,
    When I look at the storage metrics for one of our SharePoint Web Application root site collection it shows the top sized site as 28.2% of parent and the size as 21178.5 MB. When we calculate the total size of the site collection from
    that it should 74994 MB. But when I see the size of the content database ( this is the only site collection in this content database) it shows 185661.5 MB as the size and 26852.5 MB as the space available. When I run the report (Disk Usage By Top Tables)
    on that database it brings the list with dbo.AllDocStreams table at the top (Data - 80333 MB) followed by dbo.AuditData (Data - 48305 MB) followed by dbo.AllUserData (Data - 8593 MB).
    3 years back we migrated this SharePoint Web Application from 2007 to 2010.
    I saw that the recycle bin has only 30 day worth data. 
    How can we reduce the size of the database according to what it shows in the storage metrics? Appreciate any help.
    Thanks.
    rani

    so... your database has:
    80gb in files (includes version history)
    50gb in audit data
    8.5gb of list data
    plus ~27gb of free space for growth between backups
    total of ~165gb (which is close enough to the 185661.5 that you listed)
    you need to split up the site collection, and then spread the site collections across multiple databases.
    Scott Brickey
    MCTS, MCPD, MCITP
    www.sbrickey.com
    Strategic Data Systems - for all your SharePoint needs

  • One of the BizTalk Server processes in the affected computer is being throttled for significant periods because of high database size exceeding the threshold

    Hello Experts,
    I have complex Biz Talk 2013 farm having 20 servers,15 Hosts. In my production environment even if there is no traffic i am getting throttling errors from SCOM for my all the production hosts.
    Error : One of the BizTalk Server processes in the affected computer is being throttled for significant
    periods because of high database size exceeding the threshold
     I checked following things:
    1. MsgBoxDB size 748732 KB
    2. Spool table size  53 MB
    3. Tracking DB size 26724 KB
    4. Host settings --  Message Queue Size = 100, MsgCount = 50000 , Spool MP = 10 , Tracking MP = 10
    5. Ran Message Box viewer  and did not found any error related to DB size. (which counter i should focus on in MBV)
    Note -- for DB i am sharing full backup size because it does not have log file size.
    Please suggest where i should focus?
    Is SCOM reporting correctly because everything is fine in biztalk ?
    Thanks
    Yagya
    https://www.mcpvirtualbusinesscard.com/VBCServer/card.aspx?tag=YagyaDattMishra&wa=wsignin1.0

    Hi Yagyam
    I remember this error from SCOM when you use the standard SCOM BizTalk pack.
    Check the eventlog of the server, do you see any errors in event log, this could give some clue to the root cause. Whenever you have this alert from SCOM, you must have
    some entries in eventlog relating to the alert raised by SCOM.
    Is your message processing by BizTalk hosts are normal? Run the performance monitor to see the bottleneck. Check if there is really throttling.
    As mentioned in this blog, check the state of the SQL Agent on BizTalk's SQL database server, may be try restart the SQL Agent on BizTalk's SQL database server.
    http://blogs.msdn.com/b/timdel/archive/2008/11/19/why-i-love-scom.aspx
    If this answers your question please mark it accordingly. If this post is helpful, please vote as helpful by clicking the upward arrow mark next to my reply.

  • Differences between the Portal Data Collector and the Activity Data Collect

    Hello,
    I want to know what are the differences between the Portal Data Collector and the Activity Data Collector?
    Best Regards.
    Pablo Mortera.

    All of my SQL Server instances  are sql server 2008r2 standard edition(10.50.2500). MDW is existing database, I try to setup collection sets for multiple instances and store data in one central MDW database 
    I create MDW in one instance, then run run configure Management Data Warehouse in target intance. collection sets were created successfully, but job failed with following error:
    Executed as user: COCAD\INTDEPT01SQLAgentC10. The Management Data Warehouse version "00.00.0000.00" is not supported by the current data collector. Please upgrade the Management Data Warehouse by running the Management Data Warehouse Configuration
    Wizard.  Process Exit Code 5.  The step failed.
    Thanks
    PAULqaz

  • What is the difference between the 4th generation ipad and the ipad 3 with retnia display?

    What is the difference between the 4th generation iPad and the "New iPad with retina display"? i don't quite understand. are they stilll the same size or would i have to get a different case?

    The 3rd and 4th generation iPads are the same size. The 4 has a faster processor, and a little better iSight camera for FaceTime. The 4 also has the lightning connector so your old cable will not work with the iPad 4.
    You should always check with the manufacturer of the case to see if it will fit. You can probably do that on the manufacturers website.
    This might be of some interest to you.
    http://www.zdnet.com/ipad-4-teardown-pretty-much-the-same-as-the-ipad-3-70000068 33/

  • The content database on the server is temporarily unavailable while deploying a app

    HI,
    I got the following error while deploying a app. I have not added any logic in App.
    What i have tried yet:
    1. Configured Server for Using App
    2. Added permission to user2 (app developer account by which i open VS 2012) as mentioned in following URL
    http://community.zevenseas.com/Blogs/Akhilesh/Lists/Posts/Post.aspx?ID=10
    Please let me know if anyone have faced and resolved it before....
    Here we go .............................
    Active Deployment Configuration: Deploy App for SharePoint
      Skipping deployment step because a pre-deployment command is not specified.
      Skipping the uninstall step because the app for SharePoint is not installed on the server.
      Install app for SharePoint:
      Uploading the app for SharePoint...
      Installation is in progress (00:00:00)
      Installation is in progress (00:00:01)
      Installation is in progress (00:00:02)
      Installation is in progress (00:00:03)
      Installation is in progress (00:00:04)
      Installation is in progress (00:00:05)
      App failed to install, cleaning up...
      App installation cleanup failed due to errors.  Please see the app on the SharePoint site’s “Site Contents” page for details.
      App installation encountered the following errors:
      11/19/2013 2:42:13 PM
      @"Error 1
            CorrelationId: e6d878ab-ae8b-442c-90c1-ee989f5e719b
            ErrorDetail: The content database on the server is temporarily unavailable.
            ErrorType: Transient
            ErrorTypeName: Intermittent
            ExceptionMessage: System.IO.FileNotFoundException: <nativehr>0x80070002</nativehr><nativestack></nativestack>
       at Microsoft.SharePoint.Library.SPRequestInternalClass.GetMetadataForUrl(String bstrUrl, Int32 METADATAFLAGS, Guid& pgListId, Int32& plItemId, Int32& plType, Object& pvarFileOrFolder)
       at Microsoft.SharePoint.Library.SPRequest.GetMetadataForUrl(String bstrUrl, Int32 METADATAFLAGS, Guid& pgListId, Int32& plItemId, Int32& plType, Object& pvarFileOrFolder)
       at Microsoft.SharePoint.SPWeb.GetList(String strUrl)
       at Microsoft.SharePoint.Administration.SPDeveloperData.AddToDraftApps(Guid appInstanceId)
       at Microsoft.SharePoint.Lifecycle.FinalFixupTask.Deploy()
       at Microsoft.SharePoint.Administration.SPAppTask.DeployOperation()
       at Microsoft.SharePoint.Lifecycle.MonitoredTaskExecution.DoTask()
            Source: Finalization
            SourceName: App Deployment Finalization
      @"Error 2
            CorrelationId: e6d878ab-ae8b-442c-90c1-ee989f5e719b
            ErrorDetail: The content database on the server is temporarily unavailable.
            ErrorType: Transient
            ErrorTypeName: Intermittent
            ExceptionMessage: System.IO.FileNotFoundException: <nativehr>0x80070002</nativehr><nativestack></nativestack>
       at Microsoft.SharePoint.Library.SPRequestInternalClass.GetMetadataForUrl(String bstrUrl, Int32 METADATAFLAGS, Guid& pgListId, Int32& plItemId, Int32& plType, Object& pvarFileOrFolder)
       at Microsoft.SharePoint.Library.SPRequest.GetMetadataForUrl(String bstrUrl, Int32 METADATAFLAGS, Guid& pgListId, Int32& plItemId, Int32& plType, Object& pvarFileOrFolder)
       at Microsoft.SharePoint.SPWeb.GetList(String strUrl)
       at Microsoft.SharePoint.Administration.SPDeveloperData.RemoveFromDraftApps(SPSite site, Guid appInstanceId)
       at Microsoft.SharePoint.Lifecycle.FinalFixupTask.Rollback()
       at Microsoft.SharePoint.Administration.SPAppTask.DeployOperation()
       at Microsoft.SharePoint.Lifecycle.MonitoredTaskExecution.DoTask()
            Source: Finalization
            SourceName: App Deployment Finalization
    Harsh

    no ,it does has db permissions , this whole thing I think is related with weird and strange new condition of havinng sub-domains for apps ? by some changes I found it gos to my website and find outs that no resource available there , sometime 404 sometimes
    502 error. 
    The whole idea of office team about app deployment is crazy , no proper documentation or knowledge base available for people using on-prem sharepoint, this may because of the idea using cloud more ,why should we use cloud for our enterprise data ?
    btw links you gave not working either 
    Tech Learner

  • Remove-SPContentDatabase : The content database could not be found

    I am using SharePoint 2010 
    ============================================
    PS C:\Windows\system32> get-spdatabase 8fdf806b-6dc8-49b2-8bfc-d574707ea58c
    Name                     Id                                   Type
    Managed Metadata Serv... 8fdf806b-6dc8-49b2-8bfc-d574707ea58c Microsoft.SharePo...
    =======================================================
    The  "Managed Metadata Service_e13d38135b8b4f268e0aa0d4c6d408b1" does not exist on the SQL Server.
    When I remove the database, I am getting following error in powershell
    ==========================================================
    PS C:\Windows\system32>  remove-spcontentdatabase -id 8fdf806b-6dc8-49b2-8bfc-d574707ea58c
    Remove-SPContentDatabase : The content database could not be found.
    At line:1 char:26
    +  remove-spcontentdatabase <<<<  -id 8fdf806b-6dc8-49b2-8bfc-d574707ea58c
        + CategoryInfo          : InvalidData: (Microsoft.Share...ContentDatabase:SPCmdletRemoveContentDatabase) [Remove-SPContentDatabase], SPException
        + FullyQualifiedErrorId : Microsoft.SharePoint.PowerShell.SPCmdletRemoveContentDatabase
    ============================================================
    I dont want to use the DeleteConfigurationObject option as per below blog.
    http://blogs.technet.com/b/nishants/archive/2010/04/14/how-to-delete-orphan-configuration-objects-from-sharepoint-farm.aspx
    Are there any other options to fix this situation.
    Thanks
    Nate

    MMS is not a Content Database, it is a Service Application Database. Run:
    $db = Get-SPDatabase <GUID>$db.Delete()
    That should do it.
    Trevor Seward
    Follow or contact me at...
    &nbsp&nbsp
    This post is my own opinion and does not necessarily reflect the opinion or view of Microsoft, its employees, or other MVPs.

  • Workflow issue with new WSP, "Unable to locate the content database"

    I deployed a wsp last night. The farm is 1 WFE, 1 APP, 1 SQL. The workflow can be started manually, but isn't being triggered by a timer job. Workflow timer services are started on WFE and APP.
    03/03/2015 18:25:19.62 OWSTIMER.EXE (0x1870)                              0x1F50 
    Job Monitoring Logging Service Job                                          
    1              Unexpected       Microsoft.SharePoint.SPException: Unable to locate the content database named 'IntranetContent'     at SharePoint.IT.JobMonitoring.Jobs.DashboardJob.Execute(Guid
    targetInstanceId)                a3f74c85-4a11-4654-9869-67e1d2e712d9
    Any suggestions on troubleshooting?
    Thanks,
    Scott

    Hi scogordo,
    What is the wsp? Is it a migrated workflow?
    Whether the wsp has the relationship with the problematic workflow.
    You said that the workflow isn't being triggered by a timer job, what is the time job? Or, you mean the workflow cannpt be triggered automatically when an item is added or changed or other.
    If the workflow cannot start automatically when an item is added or changed, you need to make sure you are not using the System Account.
    Best Regards,
    Wendy
    TechNet Community Support
    Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact
    [email protected]

  • The Oracle database engine and forms - functionality query

    I have an interest in establishing how the Oracle System Catalogues cope with particular changes. I have never used Oracle, but I have carried out the same test on another RDBMS. If I had access to Oracle I would have carried out this test myself.
    The test goes as follows.
    Create a new database.
    Create a new simple table, with just a few columns.
    Create a form for the table, and add a few rows.
    Rename the table or a column – if you can’t, then the RDBMS is Code Class.
    If you can rename the table or a column, then do so, and invoke the form that you used before changing the table or column name. If it doesn’t work, the RDBMS is Code Class; if it does then the RDBMS is Identifier Class.
    In an Identifier Class RDBMS changes of column or relation/table name will not interfere with the operation of any form already in place based on that table.
    I'll be very grateful if anybody can give me a definitive answer on this, either through already having explored the issue or by running the test.

    Hello again William,
    now it becomes challenging. The conceptual shift required to get to Identifiers is similar in scale to the shift involved in going from Newtonian Mechanics to Quantum Mechanics or from Cartesian Space-Time to Special Relativity, with the added proviso that the concept of identity built into the Relational Model is implicit rather than explicit as respectively in the cases of Newton and Descartes.
    Your "you are not expecting.." sentence is a perfect statement of where I am - I'm not looking for the RDBMS to have any impact on application code - that would be a truly ridiculous expectation; this would make some crazy version of a cascade update, with remoteness as an extra complication. In IC applications (including RDBMSs) cascade updates are never needed.
    The next sentence also has a very strong aspect ("allow applications ... to .. compilation time) but is weaker in the "simply hoping" and "might". I havn't developed a RDBMS that does that, although I hope to participate in such a development exercise soon, but I have developed an application that does exactly what you say. Binding/joining depends on something permanent rather than something transient, where names and abbreviations are all transient, as are all pure attributes once they have had identity (and relative position) stripped out them.
    In your next paragraph I disagree that there is only a shift of problem. The dropping of whole tables or the deletion of columns is on a different scale from the changes that I am talking about, which do not but could get sensibly reflected in the current Code Class RDBMSs and applications. I'm aware that no application development tool allows what you say, (the problem is actually in the system tables) but I have achieved the completely analogous result in the application that I have developed.
    Your comments about the AREAS table precisely highlight the issues of permanence and transience on which all of my work sits. What are you doing when you drop the table and replace it with a table with the same name? Do you want to think of the "new" table as the SAME as the "old" table or is it something entirely DIFFERENT, in which case giving it the name of a table that you have dropped might easily result in serious confusion.
    If the new table is doing the same conceptual job as the old, then I would certainly want the continuity of its existence to be explicitly preserved, via the enduring identifier value (which reflects the fact that we are thinking of the table as having continuity of existence). So I would alter the table rather than dropping it and recreating it.
    If I have ended up in a cul-de-sac (I've been there) and I have to throw away the table and all its related operators, then that is what happens if I don't get it right first time. I don't want any continuity, and I'll have to junk all the form and report etc operators unless I want to preserve some bits for my next attempt. I certainly won't expect anything to continue to work, because there is nothing to work on.
    Your use of the expression "fancy name-independent code" is disappointing in all respects. I experience your use of "fancy" as sarcastic, and my full expression for "name-independent code" is "attribute independent and relative position independent identifier" whose acronym is "airpii". This is not just name-independent, it's independent of all other attribute and relative position values in the same row. It's certainly not a code: the word does not have a place in Identifier talk, since it has been replaced by abbreviations and acronyms, which are undiluted attribute; they don't have identity mixed up in them as with the "codes" of the "Codes Mistake". (In RDBMSs the mistake is called the "Names Mistake" because table and column names bear identity as well as attribute; there are no codes.)
    I very much hope that our dialogue can continue - other dialogues have stopped at this sort of stage. On my website www.identifiers.org there is a page called "Identifiers - a Visual Representation" that sets out to communicate identifiers visually, that I created to communicate this entirely new concept in a different way after another database professional got stuck. I understand from another forum user that there may be a problem getting hold of the pdf file concerned if using Firefox - please let me know.
    I have an RDBMS application on a SCO partition on a PC that proved identifiers for me. I can input a work instruction successfully using one set of abbreviations (the codes of old) and the stored instruction row makes no reference to the abbreviations that I have input - there's just a single identifier value in the appropriate column of the work instructions relation. The relationship between the abbreviations and the identifier value becomes clear from rows in other relations.
    If I then want for some good reason (some purely operational entity has been renamed) to change one of the abbreviations when also changing the full name, I can do so in the relevant relation - this is an abbreviation rather than a code that I am now dealing with; I can change it because it's not also used for joins.
    When I input the next work instruction I use the new abbreviation rather than the old; the form is entirely happy and works fine, and exactly the same identifier value ends up in the appropriate column of the work instruction relation. So I have input a different set of values to achieve exactly the same result. Is this crazy? No! This reflects the ways in which we naturally think and talk, and at last the application makes sense - I don't have to use a code that does not tie up with the name. The core of the issue is that I have been able to reflect external CHANGE fully and successfully in the database. We are surrounded by change, but RDBMSs and applications currently do not allow us to process it properly.
    I acknowledge that no application development tool works in this way at present, but that's the fault of the architecture of system tables, which I intend to remedy. One can't remove the Codes Mistake from these tables.
    However Identifier Class Applications can be developed using Code Class RDBMSs, because the developer has control over the application relation design, which can be carried out under identifier principles. I redeveloped from relation design scratch a very successful application, so I had a good placebo. In my environment I needed a 4GL form development tool so that I could get identifier values (and other attribute values) from attribute input rather than being limited to searching for a "code" to get other row values.
    If seeing is believing and of interest, then we might arrange for you to see the IC application working.
    Yours,
    George

  • Hello Anybody, I have a question. Can any of you please suggest me how to make an xml file from the database table with all the rows? Note:- I am having the XSD Schema file and the resulted XML file should be in that XSD format only.

    Hello Anybody, I have a question. Can any of you please suggest me how to make an xml file from the database table with all the records?
    Note:- I am having the XSD Schema file and the resulted XML file should be in that XSD format only.

    The Oracle documentation has a good overview of the options available
    Generating XML Data from the Database
    Without knowing your version, I just picked 11.2, so you made need to look for that chapter in the documentation for your version to find applicable information.
    You can also find some information in XML DB FAQ

  • How can I get the phone numbers in contacts to appear with dashes between the first 3 numbers, the next 3 numbers, and the last 4 numbers?  Until very recently it did so.  Contacts on my macbook pro does show up this way.  I do have a mobile me account an

    How can I get the phone numbers in contacts to appear with dashes between the first 3 numbers, the next 3 numbers, and the last 4 numbers?  Until very recently
    it did so.  Contacts on my macbook pro does show up this way.  I do have a mobile me account and in the past syncing was no problem.  What setting has changed?

    The phone number format as well as the date language and format and the time format are controlled by the Region Format setting. Go to Settings > General >International > Region Format.  When you change a region format, you can go back one page (to International) and see an example of the date/time/phone number format that your selected region format will produce.

  • How do you transfer the content from an iPhone to a PC? I have to use a PC for a while and don't know how to put my stuff on to there from my phone

    How do you transfer the content from an iPhone to a PC? I have to use a PC for a while and don't know how to put my stuff on to there from my phone

    If you're talking about music and movies an i-device was not designed for unique storage of media. It is not a backup device and media transfer was planned with you maintaining a master copy of your media on a computer which is itself properly backed up against loss. Syncing music and movies is one way, computer to device, updating the device content to the content on the computer, not updating or restoring content on a computer. The exception is iTunes Store purchases which can be transferred from a device to a computer.
    iTunes Store: Transferring purchases from your iOS device or iPod to a computer - http://support.apple.com/kb/HT1848 - only purchases from iTunes Store
    For transferring other items from an i-device to a computer you will have to use third party commercial software.  See this document by turingtest2: Recovering your iTunes library from your iPod or iOS device - https://discussions.apple.com/docs/DOC-3991

  • Is there a way to increase the icon size (and the text below) without using zoom?  I am trying to help out someone who has moderate visual impairment that does not want to use zoom just to see the icons and their labels.

    Is there a way to increase the icon size (and the text below) without using zoom in iOS 7?  I am trying to help out someone who has moderate visual impairment that does not want to use zoom just to see the icons and their labels.

    Hello Apple.
    It seems you have gone to great lengths to improve accessibility in many areas of the iPad. Why was this obvious problem with icon text size missed?  (It's not with the Mac.). And for so long too.
    Do you employ people with actual accessibility problems to help you do UI design?
    I think too, that some buttons are too close for people who might have motor control problems.
    I love my iPad but I fear as I age, the iPad might not keep up with me.

  • How is it posible to get the File name, size and type from a File out the H

    How is it posible to get the File name, size and type from a File out the HttpServletRequest. I want to upload a File from a client and save it on a server with the client name. I want to conrole before saving the name, type and size of the file.How is it posible to get the File name, size and type from a File out the HttpServletRequest.
    form JSP
    <form name="form" method="post" action="procesuploading.jsp" ENCTYPE="multipart/form-data">
    File: <input type="file" name="filename"/
    Path: <input type="text" readonly="" name="path" value="c:"/
    Saveas: <input type="text" name="saveas"/>
    <input name="submit" type="submit" value="Upload" />
    </form>
    proces JSP
    <%@ page language="java" %>
    <%@ page import="java.util.*" %>
    <%@ page import="FileUploadBean" %>
    <jsp:useBean id="TheBean" scope="page" class="FileUploadBean" />
    <%
    TheBean.doUpload(request);
    %>
    BEAN
    import java.io.*;
    import javax.servlet.http.HttpServletRequest;
    import javax.servlet.http.HttpServletResponse;
    import javax.servlet.ServletInputStream;
    public class FileUploadBean {
    public void doUpload(HttpServletRequest request) throws IOException
              String melding = "";
              String filename = request.getParameter("saveas");
              String path = request.getParameter("path");
              PrintWriter pw = new PrintWriter(new BufferedWriter(new FileWriter("test.java")));
              ServletInputStream in = request.getInputStream();
              int i = in.read();
              System.out.println("filename:"+filename);
              System.out.println("path:"+path);
              while (i != -1)
                   pw.print((char) i);
                   i = in.read();
              pw.close();
    }

    Thanks it works great.
    Here an excample from my code
    import org.apache.commons.fileupload.*;
    public class FileUploadBean extends Object implements java.io.Serializable{
    String foutmelding = "geen";
    String path;
    String filename;
    public boolean doUpload(HttpServletRequest request) throws IOException
         try
         // Create a new file upload handler
         FileUpload upload = new FileUpload();
         // Set upload parameters
         upload.setSizeMax(100000);
         upload.setSizeThreshold(100000000);
         upload.setRepositoryPath("/");
         // Parse the request
         List items = upload.parseRequest(request);
         // Process the uploaded fields
         Iterator iter = items.iterator();
         while (iter.hasNext())
         FileItem item = (FileItem) iter.next();
              if (item.isFormField())
                   String stringitem = item.getString();
         else
              String filename = "";
                   int temp = item.getName().lastIndexOf("\\");
                   filename = item.getName().substring(temp,item.getName().length());
                   File bestand = new File(path+filename);
                   if(item.getSize() > SizeMax && SizeMax != -1){foutmelding = "bestand is te groot.";return false;}
                   if(bestand.exists()){foutmelding ="bestand bestaat al";return false;}
                   FileOutputStream fOut = new FileOutputStream(bestand);     
                   BufferedOutputStream bOut = new BufferedOutputStream(fOut);
                   int bytesRead =0;
                   byte[] data = item.get();
                   bOut.write(data, 0 , data.length);     
                   bOut.close();
         catch(Exception e)
              System.out.println("er is een foutontstaan bij het opslaan de een bestand "+e);
              foutmelding = "Bestand opsturen is fout gegaan";
         return true;
         }

Maybe you are looking for

  • Anyone replace the keyboard on thier Macbook?  I have 1 broken key.

    My plus 4 year old MacBook 13" Intel Core Duo continues to work great!  The only prblem is that there is a broken key (not just the cover key) on the keyboard.  Anyone replace their keyboard?  estimated cost?  Is it worth it based upon the age (techn

  • Automatic decimal entry in Calculator

    Is there any way to set the decimal point place for entries in Calculator 4.0.5, like on a regular calculator? For example, can you set it at "2." so that if you punch in 1234 and hit an operator, it is displayed as 12.34? Just so there's no misunder

  • Trouble downloading library ebooks.

    When I attempt to download a public library ebook to my dell notebook with the Adobe Digital Edition 2.0 installed, I get the following Adobe diagnostic:" Adobe Reader could not open (library file) because it is either a not supported file or because

  • Grouped nodes added to Vbox - Height issue? Bug?

    Maybe you guys could try this out as well? I'm most probably doing something wrong but for demonstrative purposes, I've found an issue with a VBox incorrectly stating its height value when it consists of grouped nodes. Take the following for example,

  • Iphone photos won't import to iphoto

    When I try to import photos from my iPhone I click "import selected photos" and then iPhoto goes to the events menu and my iPhone disappears from the left side. The iPhone still appears in iTunes, so even though it doesn't appear in iPhoto, it is sti