Corrupt JPEG Data: Premature End of Data Segment

I've searched and searched this error for ever and everyone
says remove images from folders (an option i do not have), and no
one seems to have error i have.
I need to find out how to remove this error, it causes me
endless grief, stops my uploads (sometimes it comes up in the
middle of an upload), sometimes shows up behind dreamweaver, so i
don't see it.
Help
I'm using Dreamweaver 8.01 (govt office, can't easily
upgrade).
on XP PRO Sp2
if any other specs are needed, pls let me know.
thank you.

You are not the only one. I'm dealing with the same issue. I
did you ever get an anwer anywhere?
Thanks,
Doug Collins

Similar Messages

  • JAI can't load jpeg image, premature end of data segment error

    Hi,
    I have a customer sending in a jpeg image and I tried to use JAI to open the image. But the program throws the following error:
    However, I can see the jpeg file on Windows, and open it using Windows Picture/Paint etc software.
    Corrupt JPEG data: premature end of data segment
    Error: Cannot decode the image for the type :
    Occurs in: com.sun.media.jai.opimage.CodecRIFUtil
    java.io.IOException: Premature end of input file
         at com.sun.media.jai.codecimpl.CodecUtils.toIOException(CodecUtils.java:76)
         at com.sun.media.jai.codecimpl.JPEGImageDecoder.decodeAsRenderedImage(JPEGImageDecoder.java:48)
         at com.sun.media.jai.opimage.CodecRIFUtil.create(CodecRIFUtil.java:88)
         at com.sun.media.jai.opimage.JPEGRIF.create(JPEGRIF.java:43)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
         at java.lang.reflect.Method.invoke(Unknown Source)
         at javax.media.jai.FactoryCache.invoke(FactoryCache.java:122)
         at javax.media.jai.OperationRegistry.invokeFactory(OperationRegistry.java:1674)
         at javax.media.jai.ThreadSafeOperationRegistry.invokeFactory(ThreadSafeOperationRegistry.java:473)
         at javax.media.jai.registry.RIFRegistry.create(RIFRegistry.java:332)
         at com.sun.media.jai.opimage.StreamRIF.create(StreamRIF.java:102)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
         at java.lang.reflect.Method.invoke(Unknown Source)
         at javax.media.jai.FactoryCache.invoke(FactoryCache.java:122)
         at javax.media.jai.OperationRegistry.invokeFactory(OperationRegistry.java:1674)
         at javax.media.jai.ThreadSafeOperationRegistry.invokeFactory(ThreadSafeOperationRegistry.java:473)
         at javax.media.jai.registry.RIFRegistry.create(RIFRegistry.java:332)
         at com.sun.media.jai.opimage.FileLoadRIF.create(FileLoadRIF.java:144)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
         at java.lang.reflect.Method.invoke(Unknown Source)
         at javax.media.jai.FactoryCache.invoke(FactoryCache.java:122)
         at javax.media.jai.OperationRegistry.invokeFactory(OperationRegistry.java:1674)
         at javax.media.jai.ThreadSafeOperationRegistry.invokeFactory(ThreadSafeOperationRegistry.java:473)
         at javax.media.jai.registry.RIFRegistry.create(RIFRegistry.java:332)
         at javax.media.jai.RenderedOp.createInstance(RenderedOp.java:819)
         at javax.media.jai.RenderedOp.createInstance(RenderedOp.java:770)
    PlanarImage image = img.createInstance();
    Thanks a lot for the help,

    I'm having this issue too - did you find any more information on this?

  • Corrupt JPEG Data

    Whenever I open the Assets tab in Dreamweaver 8 (am using XP
    Pro), I get a one-after-the-other series of the error message:
    Corrupt JPEG data: 11 extraneous bytes before marker 0xdb . The
    number of extraneous bytes varies (58, 4, etc) and so does the 0x
    number (0xd9, 0xc4, etc.)
    I don't know which jpg files are causing the problem and
    there are hundreds of them listed within Dreamweaver Assets.
    How can I determine which jpeg files are corrupt?

    > Why does Dreamweaver bother with this error message
    about "corrupt jpeg
    > data:
    > premature end of data segment" if the image, created in
    Photoshop, works
    > fine
    > on the web page, and in any other software??
    Most likely because the image has a corrupted data segment
    that your limited
    test of software chooses to ignore?
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    ==================
    "RichR49" <[email protected]> wrote in
    message
    news:ghr65t$6ep$[email protected]..
    > Why does Dreamweaver bother with this error message
    about "corrupt jpeg
    > data:
    > premature end of data segment" if the image, created in
    Photoshop, works
    > fine
    > on the web page, and in any other software?? Since
    Adobe/Macromedia hard
    > coded
    > this error message into Dreamweaver, they should be able
    to disable it in
    > a
    > patch. I would like to see a complete list of
    Dreamweaver error messages
    > along
    > with a solution to fix the problem, in the back of the
    manual that comes
    > with
    > the software. It is currently not documented anywhere.
    >

  • Corrupt JPEG data causing shutdown issues

    I've found the following log entries in system.log, as I am having a problem with shutting down my applications.
    System Preferences[266]: Corrupt JPEG data: premature end of data segment
    Dec 1 15:22:42 system-name [0x0-0x25025].com.apple.systempreferences[266]: Mon Dec 1 15:22:42 system-name.local System Preferences[266] <Error>: Corrupt JPEG data: premature end of data segment\n
    I think it might be related to corrupted wallpaper in JPEG format.
    Is there any way of finding out which files are corrupted so that I can remove them?

    Thanks.
    I figured a way to do determine if a JPEG was corrupt.
    It was actually quite visible using the Cover Flow method, the jpeg wasn't showing up properly. I was afraid there was other corruption that wasn't so visible.
    What I did was, I opened up my Console from Utilities and watched the logs. As I scrolled through each picture using Cover Flow, an error would show up in the console logs.
    That's how I figured it out, thanks for your ideas!

  • Getting JPEG Library Error for Corrupt JPEG Data using CS5

    After recently upgrading to CS5 I am getting JPEG Library Errors for corrupt JPEG data. I have my old PC still in use that uses CS4 and does not generate these errors when accessing the same site. Could someone please assist me in how to get rid of these errors using CS5? I can't find help out there anywhere for this!
    Thanks in advance!

    You could use Photoshop's Image Processor to open all of your jpegs in a given folder, make a slight tweek and resave them in the hopes of cleaning out any errors that DW is hitting. It's worth a shot maybe.
    1. In PS go to File > Scripts > Image Processor
    2. For Step 1, browse to a folder in your site with jpeg issues
    3. For Step 2, choose save in same location
    4. For Step 3, choose Save as JPEG and check Convert File to sRGB
    5. Click Run
    This will create a sub folder called JPEG with the images resaved there. You can drag them into the parent folder to replace the originals.
    If you haven't already, make sure to report the bug here: https://www.adobe.com/cfusion/mmform/index.cfm?name=wishform
    At least the right people will be made aware of it then and if it's common enough to trip whatever quantity/user reports system they use, it would get included for repair.
    I honestly don't think it's a "bug" per se, since the forum isn't absolutely flooded with the problem.

  • Corrupt JPEG data: 1 extraneous bytes before marker 0xd9

    Hello,
    Every time when I run the programming with icon and string JList, it shows the following message:
    Corrupt JPEG data: 1 extraneous bytes before marker 0xd9
    Does any body have any ideas to solve the above problem?
    Thank you in advance.
    Daniel

    Have you tried using an uncorrupted JPEG image?

  • Library error:corrupt JPEG data:2699 extraneous bytes before marker 0xe2

    How can I fix this library error: corrupt JPEG data:2699 extraneous bytes before marker 0xe2
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
          <div id="head-nav">
            <ul>
              <li><a href="../about/contactus.html"> Contact us</a></li>
              <span class="spacer">|</span>
              <li><a href="../news/news.html">News</a></li>
              <span class="spacer">|</span>
              <li><a href="../events/events.html" target="_new">Events</a></li>
              <span class="spacer">|</span>
              <li><a href="../hr/index.html">Careers</a></li>
              <span class="spacer">|</span>
              <li><a href="../volunteer/index.html">Volunteer</a></li>
            </ul>
            <form action="http://www.bancroftneurohealth.org/search.html" id="cse-search-box">
              <div class="search">
                <input type="hidden" name="cx" value="008757697627747439989:fqakzcjmvkq" />
                <input type="hidden" name="cof" value="FORID:9" />
                <input type="hidden" name="ie" value="UTF-8" />
                <input type="text" name="q" size="31" />
                <input type="submit" name="sa" value="Search" />
              </div>
            </form>
            <script type="text/javascript" src="http://www.google.com/cse/brand?form=cse-search-box&lang=en"></script>
          </div>

    I think the error is with the marker within the search box. I did not create the search box but need to update the nav list within the div where the search box resides. Anyone have experience with the google cse-search box below?
    "cse-search-box">
              <div class="search">
                <input type="hidden" name="cx" value="008757697627747439989:fqakzcjmvkq" />
                <input type="hidden" name="cof" value="FORID:9" />
                <input type="hidden" name="ie" value="UTF-8" />
                <input type="text" name="q" size="31" />
                <input type="submit" name="sa" value="Search" />
              </div>
            </form>
            <script type="text/javascript" src="http://www.google.com/cse/brand?form=cse-search-box&lang=en"></script>
          </div>
        I think the marker within the search box is causing the error. I did not create this search box but need to update the navigation
    div which contains this search box.

  • DW Windows claims corrupt JPEGs; Mac doesn't

    When I open a certain site in DW 8.0.2 Windows, it complains
    that some of the JPEGs are corrupt (it won't say which) by bringing
    up a "Corrupt JPEG data" dialog and sometimes an additional dialog
    complaining about data after a certain marker.
    However, opening the same site in the Macintosh version
    reveals no problems at all, even when the site images are exact
    copies. No browser has any problems with any file on the site, and
    a wide selection of graphics programs on both platforms have no
    problem opening any of the files.
    Is the Windows version ultra-picky about JPEG conformity? Is
    it a bug? And in any event, how do I locate the files that DW Win
    dislikes (that's quicker than dismissing a string of dialog boxes,
    ie does not involve removing blocks of images until the problem
    goes away and then putting them back again)?
    Any observations welcome.
    Thanks,
    --Richard E

    If you need to communicate with Macromedia, you need to
    contact them
    directly, or use the wish form -
    http://www.macromedia.com/cfusion/mmform/index.cfm?name=wishform
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.dreamweavermx-templates.com
    - Template Triage!
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    http://www.macromedia.com/support/search/
    - Macromedia (MM) Technotes
    ==================
    "RocDoc7" <[email protected]> wrote in
    message
    news:ebt8m0$jj4$[email protected]..
    >I have been battling the same problem ever since I
    installed Dreamweaver 8
    >(and
    > upgraded to 8.0.2). It is really taxing my patience. Can
    someone from
    > Macromedia comment on the "jpg error" problem? A simple
    addition to the
    > Preferences where we can turn off those annoying pop-ups
    would be very
    > helpful.
    >
    > RocDoc7
    >

  • How to solve java.io.IOException: Corrupt form data: premature ending

    hei evryone!
    Does anyone knows how to solve this bug?
    java.io.IOException: Corrupt form data: premature ending
    Im using Oreilly's cos.jar MultipartRequest
    here is my form :
    <FORM METHOD="POST" NAME="uploadform" action="mbbfile" ENCTYPE="multipart/form-data">
    <TR>
    <TD>Select a File:</TD>
    <TD><INPUT TYPE="FILE" NAME="srcfile" style="width:400px"/></TD>
    </TR>
    <TR><TD><INPUT TYPE="SUBMIT" VALUE="Send"/></TD></TR>
    </FORM>
    HERE IS mbbfile which is a servlet :
    package mbb.servlet;
    import java.io.IOException;
    import java.sql.Connection;
    import javax.servlet.RequestDispatcher;
    import javax.servlet.ServletContext;
    import javax.servlet.ServletException;
    import javax.servlet.http.HttpServlet;
    import javax.servlet.http.HttpServletRequest;
    import javax.servlet.http.HttpServletResponse;
    import com.oreilly.servlet.MultipartRequest;
    import org.jconfig.Configuration;
    import org.jconfig.ConfigurationManager;
    public class MBBFileServlet extends HttpServlet{
         private static final Configuration conf = ConfigurationManager.getConfiguration("ConfigFile");
         public void doGet(HttpServletRequest req, HttpServletResponse res) throws ServletException, IOException
              String filePath = conf.getProperty("FilePath", "", "test");
              try{
              MultipartRequest multi = new MultipartRequest(req,filePath,5*1024*1024);
              }catch(Exception e){
                   System.out.println("MBBFileServlet Exception ---> "+e.getMessage());
         public void doPost(HttpServletRequest req, HttpServletResponse res) throws ServletException, IOException
              doGet(req,res);
    Sometimes it works meaning the file is uploaded in the directory without any exception, sometimes the file is uploaded but with exception on the log saying "MBBFileServlet Exception ---> Corrupt form data: Premature Ending". and sometimes the files is not uploaded at all and when i check the error is : "MBBFileServlet Exception ---> Corrupt form data: Premature Ending". Can anyone please help me on this matter. Thx!
    Your response would be deeply appreciated.
    br,
    TAC

    Hi all!
    Since I've spent some days now trying to figure out what was wrong with my file upload in Struts 1.1, I would like to share my solution with the rest of you in order to spare you for the same amout of wasted time I've spent :-)
    My platform is Resin 3.0.8 and Struts 1.1. My problem was that JPEG's got corrupted when arriviving at the server. After a few days searching on the net, I tried with a plain servlet and the O'Reilly package, and the app worked perfect.
    Here is my servlet:
    package no.yourcompany.yourapp.servlet;
    import com.oreilly.servlet.multipart.MultipartParser;
    import com.oreilly.servlet.multipart.Part;
    import com.oreilly.servlet.multipart.FilePart;
    import javax.servlet.http.HttpServlet;
    import javax.servlet.http.HttpServletResponse;
    import javax.servlet.http.HttpServletRequest;
    import javax.servlet.ServletException;
    import javax.servlet.ServletContext;
    import javax.servlet.RequestDispatcher;
    import java.io.IOException;
    import java.io.ByteArrayOutputStream;
    public class ImageUpload extends HttpServlet {
    private static final String PAGE_RECEIPT = "/popImageUploadReceipt.do";
    private static final int MAX_FILE_SIZE_IN_BYTES = 10000000; // 10 M
    * Extracts image from request and puts it into person form.
    * @see HttpServlet#doPost(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)
    public void doPost(HttpServletRequest request, HttpServletResponse response)
    throws ServletException, IOException {
    // custom beans from my project, not defined here
    PersonRegistrationForm personRegistrationForm = null;
    PortraitImage portraitImage = null;
    ByteArrayOutputStream outputStream = null;
    Part currentPart = null;
    FilePart currFilePart = null;
    personRegistrationForm = (PersonRegistrationForm) request.getSession().getAttribute(DsnSessionKeyConstantsIF.KEY_PERSON_FORM);
    portraitImage = personRegistrationForm.getPortraitImage();
    try {
    MultipartParser parser = new MultipartParser(request, MAX_FILE_SIZE_IN_BYTES);
    while ((currentPart = parser.readNextPart()) != null) {
    if (currentPart.isFile()) {
    currFilePart = (FilePart) currentPart;
    outputStream = new ByteArrayOutputStream();
    currFilePart.writeTo(outputStream);
    // portraitImage is just a bean for encapsulating image data, not defined in this posting
    portraitImage.setContentType(currFilePart.getContentType());
    portraitImage.setImageAsByteArray(outputStream.toByteArray());
    portraitImage.setOriginalFileName(currFilePart.getFileName());
    break;
    } // if (currentPart.isFile())
    } // while ((currentPart = parser.readNextPart()) != null)
    } catch (IOException ioe) {
    // noop
    // redirect to receipt page
    ServletContext servletContext = this.getServletContext();
    RequestDispatcher requestDispatcher = servletContext.getRequestDispatcher(PAGE_RECEIPT);
    requestDispatcher.forward(request, response);
    } // doPost
    } // ImageUpload
    AND ADD THIS TO YOUR WEB.XML
    <servlet>
    <servlet-name>ImageUpload</servlet-name>
    <servlet-class>no.yourcompany.yourapp.servlet.ImageUpload</servlet-class>
    </servlet>
    <servlet-mapping>
    <servlet-name>ImageUpload</servlet-name>
    <url-pattern>imageUpload.do</url-pattern>
    </servlet-mapping>
    AND THE HTML-FORM IS HERE
    <form action="/yourapp/imageUpload.do" method="post" enctype="multipart/form-data" accept="image/*">
    <p>
    <input type="file" name="portraitImage" />
    </p>
    <p>
    <input type="image" src="/dsn/img/btn_last_bilde.gif" border="0">
    </p>
    </form>

  • MultipartRequest java.io.IOException: Corrupt form data: premature ending

    i try to upload a file using MultipartRequest
    i want to get the name of the file uploaded with html form
    and display it on jsp page (just for now to see if it works)
    in server.log i see Error creating file: java.io.IOException: Corrupt form data: premature ending
    thank You

    Then whatever is uploading the file, isn't doing it correctly.

  • BI services error "Data parsing failed, premature end of file".

    Hi all,
    we are facing issue while using BI services whenever we are trying to drill data its showing the error as "Data parsing failed contact your system administrator,premature end of file".
    please share with me if anyone has faced the same error anytime.
    thank in advance for your valuable suggestions.
    Thanks,
    karan.

    Hi,
    Please check whether the RFC imported by you contain the exact elements of XML.  I feel the RFC generated does not contain proper XML schema.
    Regards
    Krish

  • IOException: Premature end of POST data

    Hi, I have a web application with Java 5 / Struts 1.2.4 running on OAS 10g. I have this error when I tried to get any option of the application. The application is deployed in Tomcat, Websphere, JBoss, Glassfish but it fails only in OAS.
    This is the error trace:
    es.IOException: Premature end of POST data
    es.class.java.lang.IllegalStateException
    es.com.megasoft.erp.seguridad.acceso.MenuLauncherAction.execute (MenuLauncherAction.java:63)
    +...+
    +...+
    This is the code of MenuLauncher.java:
    public class MenuLauncherAction extends GenericaDispatchAction {
        private final static String SHC_LOG = "<L>";
        private final static String SHC_CVS = "<V>";
        private final static String FWD_ERROR = "error";
        private final static String FWD_DEFAULT = "default";
        private final static String FWD_MODULOS = "modulos";
        private static final String FWD_APPLOG = "appLog";
        private static final String FWD_CVS = "controlVersion";
        public ActionForward execute(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) throws Exception {
            Connection conn = null;
            // El forward corresponde a posicón 0 url a donde debe ser enviado o FWD_ a traducir el campo 1 indica si debe mapearse o no.
            String[] forward = new String []{FWD_DEFAULT, "S"};
            try {
                initLog(request);
                String sessionId = request.getSession().getId();          
                conn = UtilDAO.getConnection(getActiveDataSource(request));
                UserPrincipal principal = UserEnvironment.getPrincipal(request);
                String grupo = request.getParameter("grupo");     /*APPLICATION FAILS IN THIS LINE*/
                String modulo = request.getParameter("modulo");
                String permiso = request.getParameter("permiso");
                String shortcut = request.getParameter("shortcut");
                String usuario = UserEnvironment.getLogin(request);
                Integer empresa = UserEnvironment.getEmpresa(request).getCodigo();
                if (!ApplicationUtil.nullOrEmpty(grupo)){
                    SeguridadService segService = (SeguridadService) getServiceLocator().getService(SeguridadService.class);
                    segService.modifyEmpresaPerfil(principal, shortcut, grupo, log, conn);
                    ApplicationEnvironment.addUsuarioPerfilCache(usuario);
                boolean isModulo = !nullOrEmpty(modulo);
                boolean isPermiso = !nullOrEmpty(permiso);
                boolean isShortcut = !nullOrEmpty(shortcut);
                if(isPermiso) {
                    forward = per(empresa, usuario, permiso, principal, sessionId);
                } else if(isModulo) {
                    mod(empresa, usuario, modulo, principal);
                } else if(isShortcut) {
                    forward = shc(empresa, usuario, shortcut, principal, sessionId, conn);
                } else {
                    throw new ValidationException("Parametro incorrecto", "error.menuLauncher.parametros", null);
            }catch (ValidationException e) {
                log.addMessage(e.getKey(), e.getParams(), ApplicationLog.MSG_USER);
            } catch(Exception e) {
                log.addException(e);
            } finally {
                UtilDAO.closeConnection(conn);
                saveLog(request);
            return new ActionForward(forward[1].equalsIgnoreCase("S")?mapping.findForward(forward[0]).getPath():forward[0]);
    I have a javascript code that builds all urls of the application, this is the javascript code:
    function loadOptionMenu(context, grupo){
         var cargarUrl = false;
         var urlTpw = document.getElementById("urlTpw");
         var btnShortcut = document.getElementById("btnShortcut");
         var url = context + "/menu.do?";
         if (urlTpw!=null && urlTpw.value!=''){
              url =  urlTpw.value + '&';
         if(btnShortcut.value!=""){
              cargarUrl = true;
              url += "shortcut=" + btnShortcut.value.toLowerCase();
         if (grupo!=null && grupo!=""){
              url += "&grupo=" + grupo;
         //alert('URL a cargar: ' + url);
         if (cargarUrl){
              cargar(url, true);
    }Finally code above builds an url in this way:
    http://localhost:8080/neon/menu.do?shortcut=con&grupo=ADMCONTRATO
    I had been googling about error, in this post http://en.allexperts.com/q/JSP-Java-Server-3299/Question-request-class.htm answered a possible solution. I don't know if the order of the parameters in the url and the way that it were called is important. it must be? may be another cause?
    Thanks for your help
    Fernando G.

    what does "initLog()" do with the request object (or any of the other calls which take the request instance)? are any of them looking at the stream/reader associated with the request?
    Edited by: jtahlborn on Aug 10, 2011 4:54 PM

  • A premature end-of-message was encountered--an incoming data stream was interrupted when the server expected to see more data

     I am getting this error when try to transfer data from an hosted database.
    An OLE DB record is available. Source: "Microsoft SQL Server Native Client 10.0" Hresult: 0x80004005 Description: "While reading current row from host, a premature end-of-message was encountered--an incoming data stream was interrupted when the server expected to see more data. The host program may have terminated. Ensure that you are using a supported client application programming interface (API).".
    How can I work around this?
    This is a simple data flow from a SQL 2005 table using SQL 2008 SSIS. going to a SQL 2008 table
    ThanksSQL Server MVP http:\\sqlblogcasts.com\blogs\simons

    You can still keep the NVARCHAR computed column in the table, but you cannot use MAX for the length, just use a fixed size and it will work like a charm (i.e. convert the whole result of the computation to NVARCHAR(4000)).
    Laurent.

  • Display incomplete image: Premature end of JPEG file

    Hello people,
    My problem is that displaying an image with incomplete data works fine, apart from that the following error message is printed out: Premature end of JPEG file
    The picture looks perfect (the missing part is rendered in gray), but I want to get rid of the error message.
    //init
    File jpegFile = new File("picture.jpg");
    FileInputStream inputStream = new FileInputStream(jpegFile);
    ByteArrayOutputStream outputStream = new ByteArrayOutputStream();
    //step 1: downloading the image
    byte buffer[] = new byte[bufferSize];
    int bytesRead;
    while( bytesRead = input.read( buffer ) ) >= 0 )
            output.write( buffer, 0, bytesRead );
    //step 2: create (and display) incomplete image (download not finished yet)
    byte byteArray[] = outputStream.toByteArray();
    Image img = Toolkit.getDefaultToolkit().createImage( byteArray );Thanks for help,
    Martin

    Recreate the JPG image in your graphics editor - it is
    corrupted.
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.dreamweavermx-templates.com
    - Template Triage!
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    http://www.macromedia.com/support/search/
    - Macromedia (MM) Technotes
    ==================
    "wuest" <[email protected]> wrote in message
    news:e20uth$pme$[email protected]..
    > Have just used the assets panel for the first time...
    tried to create a
    > template... an image showed up and then this unending
    message kept
    > appearing
    > ... "premature end of jpeg file" and no matter how many
    times you click it
    > stil
    > keeps reappearing... please, can someone put me out of
    my misery?
    >
    > thanks.
    >

  • Corrupt SRUDB.dat in WIndows 8.1 - Event ID 476

    Hi all,
    I have an issue slight issue with a Windows 8.1 machine (non domain joined). The user was complaining that the system/applications would become unresponsive. I ran a "Chkdsk /f /r" and it came back with a few bad clusters of which some where located
    in the "\Windows\System32\sru\SRUDB.dat" file.
    In the Application Event Log I see an event ID 476 raised which contain the following:
    svchost (1300) SRUJet: The database page read from the file "C:\WINDOWS\system32\SRU\SRUDB.dat" at offset 2195456 (0x0000000000218000) (database page 535 (0x217)) for 4096 (0x00001000) bytes failed verification because it contains no page data. 
    The read operation will fail with error -1019 (0xfffffc05).  If this condition persists then please restore the database from a previous backup. This problem is likely due to faulty hardware. Please contact your hardware vendor for further assistance
    diagnosing the problem.
    I'm running an "sfc /scannow", but it looks as though the actual SRUDB.dat database has become corrupt. What does this DAT file contain and is there a way to recreate?
    SFC retunred:
    Windows Resource Protection found corrupt files but was unable to fix some
    of them. Details are included in the CBS.Log windir\Logs\CBS\CBS.log. For
    example C:\Windows\Logs\CBS\CBS.log. Note that logging is currently not
    supported in offline servicing scenarios.
    I can post the CBS.log file if required, but toward the end there are some interesting entries:
    2014-11-30 16:04:31, Info                  CSI    000008c5 [SR] Verify complete
    2014-11-30 16:04:31, Info                  CSI    000008c6 [SR] Repairing 2 components
    2014-11-30 16:04:31, Info                  CSI    000008c7 [SR] Beginning Verify and Repair transaction
    2014-11-30 16:04:31, Info                  CSI    000008c8 [SR] Cannot repair member file [l:32{16}]"bootmgfw.efi.mui" of Microsoft-Windows-BootEnvironment-Core-BootManager-EFI.Resources,
    Version = 6.3.9600.17031, pA = PROCESSOR_ARCHITECTURE_AMD64 (9), Culture = [l:10{5}]"en-GB", VersionScope = 1 nonSxS, PublicKeyToken = {l:8 b:31bf3856ad364e35}, Type neutral, TypeName neutral, PublicKey neutral in the store, file is missing
    2014-11-30 16:04:32, Info                  CSI    000008c9 Hashes for file member \SystemRoot\WinSxS\amd64_prncacla.inf_31bf3856ad364e35_6.3.9600.17415_none_95dd5540d57f8c01\Amd64\CNBJ2530.DPB
    do not match actual file [l:36{18}]"Amd64\CNBJ2530.DPB" :
      Found: {l:32 b:Lj30AtCo6GC4fXRo0EX1GOwFbEaWFP3FS+YNHfv0SZ4=} Expected: {l:32 b:n520k714Uu3utHa5JGQ6HQYbZphKhlMWq5pEmfnCDuw=}
    2014-11-30 16:04:32, Info                  CSI    000008ca [SR] Cannot repair member file [l:36{18}]"Amd64\CNBJ2530.DPB" of prncacla.inf, Version =
    6.3.9600.17415, pA = PROCESSOR_ARCHITECTURE_AMD64 (9), Culture neutral, VersionScope = 1 nonSxS, PublicKeyToken = {l:8 b:31bf3856ad364e35}, Type = [l:24{12}]"driverUpdate", TypeName neutral, PublicKey neutral in the store, hash mismatch
    2014-11-30 16:04:32, Info                  CSI    000008cb [SR] Unable to repair \SystemRoot\WinSxS\amd64_microsoft-windows-b..nager-efi.resources_31bf3856ad364e35_6.3.9600.17031_en-gb_68408c0dc1958b90\\[l:32{16}]"bootmgfw.efi.mui"
    2014-11-30 16:04:32, Info                  CSI    000008cc [SR] Cannot repair member file [l:32{16}]"bootmgfw.efi.mui" of Microsoft-Windows-BootEnvironment-Core-BootManager-EFI.Resources,
    Version = 6.3.9600.17031, pA = PROCESSOR_ARCHITECTURE_AMD64 (9), Culture = [l:10{5}]"en-GB", VersionScope = 1 nonSxS, PublicKeyToken = {l:8 b:31bf3856ad364e35}, Type neutral, TypeName neutral, PublicKey neutral in the store, file is missing
    2014-11-30 16:04:32, Info                  CSI    000008cd [SR] This component was referenced by [l:168{84}]"Package_2145_for_KB2919355~31bf3856ad364e35~amd64~~6.3.1.14.2919355-4305_neutral_GDR"
    2014-11-30 16:04:32, Info                  CSI    000008ce Hashes for file member \SystemRoot\WinSxS\amd64_prncacla.inf_31bf3856ad364e35_6.3.9600.17415_none_95dd5540d57f8c01\Amd64\CNBJ2530.DPB
    do not match actual file [l:36{18}]"Amd64\CNBJ2530.DPB" :
      Found: {l:32 b:Lj30AtCo6GC4fXRo0EX1GOwFbEaWFP3FS+YNHfv0SZ4=} Expected: {l:32 b:n520k714Uu3utHa5JGQ6HQYbZphKhlMWq5pEmfnCDuw=}
    2014-11-30 16:04:32, Info                  CSI    000008cf [SR] Cannot repair member file [l:36{18}]"Amd64\CNBJ2530.DPB" of prncacla.inf, Version =
    6.3.9600.17415, pA = PROCESSOR_ARCHITECTURE_AMD64 (9), Culture neutral, VersionScope = 1 nonSxS, PublicKeyToken = {l:8 b:31bf3856ad364e35}, Type = [l:24{12}]"driverUpdate", TypeName neutral, PublicKey neutral in the store, hash mismatch
    2014-11-30 16:04:32, Info                  CSI    000008d0 [SR] This component was referenced by [l:166{83}]"Package_2709_for_KB3000850~31bf3856ad364e35~amd64~~6.3.1.8.3000850-6825_neutral_GDR"
    2014-11-30 16:04:32, Info                  CSI    000008d1 [SR] Repair complete
    2014-11-30 16:04:32, Info                  CSI    000008d2 [SR] Committing transaction
    2014-11-30 16:04:32, Info                  CSI    000008d3 Creating NT transaction (seq 2), objectname [6]"(null)"
    2014-11-30 16:04:32, Info                  CSI    000008d4 Created NT transaction (seq 2) result 0x00000000, handle @0xf0c
    2014-11-30 16:04:32, Info                  CSI    000008d5@2014/11/30:16:04:32.816 Beginning NT transaction commit...
    2014-11-30 16:04:32, Info                  CSI    000008d6@2014/11/30:16:04:32.891 CSI perf trace:
    CSIPERF:TXCOMMIT;82527
    2014-11-30 16:04:32, Info                  CSI    000008d7 [SR] Verify and Repair Transaction completed. All files and registry keys listed in this transaction 
    have been successfully repaired
    Following this I ran a "Dism /Online /Cleanup-Image /RestoreHealth", which seems to have repair a few packages as seen in the CBS log, therefore I can an "sfc /scannow" once more - this time SFC reported there were no integrity violations.
    However, the Event ID 476 and corrupt SRUDB.dat still persists. Is there anything that anyone can suggest?
    Cheers
    Chris
    Chris

    Hi Swinter,
    “WD diagnostic showed there were unrecoverable errors” “the system seems to be stable”
    Since there are unrecoverable errors and it has much possibility to relate to the drive. The error will occur again if the hardware issue is not be resolved. If the issue is under tolerant , I recommend you to back up your important data to a separate media.
    This is vital to avoid of losing important data due to the unexpected drive corruption. Making a full system imagine is a better choice, though the error may be included.
    If you decide to replace the hard drive ,this video may be helpful.
    Video: Restoring your PC after a hard drive failure
    http://windows.microsoft.com/en-HK/windows7/help/videos/restoring-your-pc-after-a-hard-drive-failure#tab=system
    Best regards

Maybe you are looking for

  • Inbound delivery replication ECC - EWM

    Hello, I am currently trying to link a SAP ECC 6.00 system to a SAP SCM5.00 in order to use eWM. The RFC destinations are correctly customized and the master data is correctly replicated between the central and decentral system (via the CIF) => <i>I'

  • Viewing photos in iPhoto that were saved to an external hard drive

    I recently purchased a 160gb external hard drive in response to nearly filling the 80gb internal of my Powerbook G4. In order to free up some space, I put the 6,000 photos I had accumulated on to the external. I found myself immediately regretting th

  • Some parameters are missing values

    I am trying to invoke a crystal report using JRC API. I am using Business Objects XI. When I try to invoke the report after setting all parameters I am getting an error message "Some parameters are missing values ". Here is how my JSP code looks like

  • Making a iMovie file loop

    I have a short iMovie file that I made from a series of pictures that I want to play continually as a display during a party. I can get the file to play continuosly when I export it to quicktime and set quicktime to look it. But I am playing it throu

  • Download assistant doesn't work and has caused system problems

    Download assistant jumps to the halfway point and just sits there.  I'm using Win7 and have run it as adminsitrator.  Now, my machine will not shutdown correctly, and it's new!  I'm very unhappy.  What is going on?